mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +03:00
Merge pull request #8355 from radarhere/unused_tiff
Removed unused TiffImagePlugin IFD_LEGACY_API
This commit is contained in:
commit
579a5a2ed1
|
@ -142,6 +142,13 @@ Removed features
|
||||||
Deprecated features are only removed in major releases after an appropriate
|
Deprecated features are only removed in major releases after an appropriate
|
||||||
period of deprecation has passed.
|
period of deprecation has passed.
|
||||||
|
|
||||||
|
TiffImagePlugin IFD_LEGACY_API
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
.. versionremoved:: 11.0.0
|
||||||
|
|
||||||
|
``TiffImagePlugin.IFD_LEGACY_API`` was removed, as it was an unused setting.
|
||||||
|
|
||||||
PSFile
|
PSFile
|
||||||
~~~~~~
|
~~~~~~
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,11 @@ removed. Pillow's C API will now be used on PyPy instead.
|
||||||
``Image.USE_CFFI_ACCESS``, for switching from the C API to PyAccess, was
|
``Image.USE_CFFI_ACCESS``, for switching from the C API to PyAccess, was
|
||||||
similarly removed.
|
similarly removed.
|
||||||
|
|
||||||
|
TiffImagePlugin IFD_LEGACY_API
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
An unused setting, ``TiffImagePlugin.IFD_LEGACY_API``, has been removed.
|
||||||
|
|
||||||
Deprecations
|
Deprecations
|
||||||
============
|
============
|
||||||
|
|
||||||
|
|
|
@ -69,7 +69,6 @@ logger = logging.getLogger(__name__)
|
||||||
# Set these to true to force use of libtiff for reading or writing.
|
# Set these to true to force use of libtiff for reading or writing.
|
||||||
READ_LIBTIFF = False
|
READ_LIBTIFF = False
|
||||||
WRITE_LIBTIFF = False
|
WRITE_LIBTIFF = False
|
||||||
IFD_LEGACY_API = True
|
|
||||||
STRIP_SIZE = 65536
|
STRIP_SIZE = 65536
|
||||||
|
|
||||||
II = b"II" # little-endian (Intel style)
|
II = b"II" # little-endian (Intel style)
|
||||||
|
@ -1125,7 +1124,7 @@ class ImageFileDirectory_v1(ImageFileDirectory_v2):
|
||||||
return val
|
return val
|
||||||
|
|
||||||
|
|
||||||
# undone -- switch this pointer when IFD_LEGACY_API == False
|
# undone -- switch this pointer
|
||||||
ImageFileDirectory = ImageFileDirectory_v1
|
ImageFileDirectory = ImageFileDirectory_v1
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user