From 9bb4c516299a92c3d2c10cc4b94dd4d6ec84829e Mon Sep 17 00:00:00 2001 From: wiredfool Date: Thu, 10 Sep 2015 08:49:37 -0700 Subject: [PATCH] module level default api level --- PIL/TiffImagePlugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PIL/TiffImagePlugin.py b/PIL/TiffImagePlugin.py index b64c9e9bc..64efb4d9b 100644 --- a/PIL/TiffImagePlugin.py +++ b/PIL/TiffImagePlugin.py @@ -63,6 +63,7 @@ DEBUG = False # Needs to be merged with the new logging approach. # Set these to true to force use of libtiff for reading or writing. READ_LIBTIFF = False WRITE_LIBTIFF = False +IFD_LEGACY_API = True II = b"II" # little-endian (Intel style) MM = b"MM" # big-endian (Motorola style) @@ -276,7 +277,7 @@ class ImageFileDirectory(collections.MutableMapping): raise SyntaxError("not a TIFF IFD") self.reset() self.next, = self._unpack("L", ifh[4:]) - self._legacy_api = False + self._legacy_api = IFD_LEGACY_API prefix = property(lambda self: self._prefix) offset = property(lambda self: self._offset)