Changed None comparison to is

This commit is contained in:
Andrew Murray 2017-03-03 21:06:49 +11:00
parent 5ce44d07ed
commit bef530cb09

View File

@ -1168,7 +1168,7 @@ class TiffImageFile(ImageFile.ImageFile):
self.info["dpi"] = xres, yres self.info["dpi"] = xres, yres
elif resunit == 3: # dots per centimeter. convert to dpi elif resunit == 3: # dots per centimeter. convert to dpi
self.info["dpi"] = xres * 2.54, yres * 2.54 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 self.info["dpi"] = xres, yres
# For backward compatibility, we also preserve the old behavior. # For backward compatibility, we also preserve the old behavior.
self.info["resolution"] = xres, yres self.info["resolution"] = xres, yres