Skip to content

Commit 94315f8

Browse files
committed
Removed unused IFD_LEGACY_API
1 parent 6377321 commit 94315f8

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

docs/deprecations.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,13 @@ Removed features
142142
Deprecated features are only removed in major releases after an appropriate
143143
period of deprecation has passed.
144144

145+
TiffImagePlugin IFD_LEGACY_API
146+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
147+
148+
.. versionremoved:: 11.0.0
149+
150+
``TiffImagePlugin.IFD_LEGACY_API`` was removed, as it was an unused setting.
151+
145152
PSFile
146153
~~~~~~
147154

docs/releasenotes/11.0.0.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ removed. Pillow's C API will now be used on PyPy instead.
4040
``Image.USE_CFFI_ACCESS``, for switching from the C API to PyAccess, was
4141
similarly removed.
4242

43+
TiffImagePlugin IFD_LEGACY_API
44+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45+
46+
An unused setting, ``TiffImagePlugin.IFD_LEGACY_API``, has been removed.
47+
4348
Deprecations
4449
============
4550

src/PIL/TiffImagePlugin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
# Set these to true to force use of libtiff for reading or writing.
7070
READ_LIBTIFF = False
7171
WRITE_LIBTIFF = False
72-
IFD_LEGACY_API = True
7372
STRIP_SIZE = 65536
7473

7574
II = b"II" # little-endian (Intel style)
@@ -1125,7 +1124,7 @@ def __getitem__(self, tag: int) -> Any:
11251124
return val
11261125

11271126

1128-
# undone -- switch this pointer when IFD_LEGACY_API == False
1127+
# undone -- switch this pointer
11291128
ImageFileDirectory = ImageFileDirectory_v1
11301129

11311130

0 commit comments

Comments
 (0)