From bef530cb091b1b3ec2eecdb11923d02b125c7401 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 3 Mar 2017 21:06:49 +1100 Subject: [PATCH] Changed None comparison to is --- PIL/TiffImagePlugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PIL/TiffImagePlugin.py b/PIL/TiffImagePlugin.py index 9dbd2d379..1cce43d74 100644 --- a/PIL/TiffImagePlugin.py +++ b/PIL/TiffImagePlugin.py @@ -1168,7 +1168,7 @@ class TiffImageFile(ImageFile.ImageFile): self.info["dpi"] = xres, yres elif resunit == 3: # dots per centimeter. convert to dpi self.info["dpi"] = xres * 2.54, yres * 2.54 - elif resunit == None: # used to default to 1, but now 2) + elif resunit is None: # used to default to 1, but now 2) self.info["dpi"] = xres, yres # For backward compatibility, we also preserve the old behavior. self.info["resolution"] = xres, yres