mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-24 17:06:16 +03:00
Updated documentation and removed deprecated comment
This commit is contained in:
parent
a5bac62bc3
commit
d097d44fa1
|
@ -648,7 +648,7 @@ del _load_dispatch, _write_dispatch, idx, name
|
||||||
|
|
||||||
# Legacy ImageFileDirectory support.
|
# Legacy ImageFileDirectory support.
|
||||||
class ImageFileDirectory_v1(ImageFileDirectory_v2):
|
class ImageFileDirectory_v1(ImageFileDirectory_v2):
|
||||||
"""This class represents the **legacy** interface to a TIFF tag directory.
|
"""This class represents the **legacy** interface to a TIFF tag directory.
|
||||||
|
|
||||||
Exposes a dictionary interface of the tags in the directory::
|
Exposes a dictionary interface of the tags in the directory::
|
||||||
|
|
||||||
|
@ -668,7 +668,6 @@ class ImageFileDirectory_v1(ImageFileDirectory_v2):
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
ImageFileDirectory_v2.__init__(self, *args, **kwargs)
|
ImageFileDirectory_v2.__init__(self, *args, **kwargs)
|
||||||
self._legacy_api = True
|
self._legacy_api = True
|
||||||
# insert deprecation warning here.
|
|
||||||
|
|
||||||
tags = property(lambda self: self._tags_v1)
|
tags = property(lambda self: self._tags_v1)
|
||||||
tagdata = property(lambda self: self._tagdata)
|
tagdata = property(lambda self: self._tagdata)
|
||||||
|
|
|
@ -512,7 +512,7 @@ The :py:meth:`~PIL.Image.Image.save` method can take the following keyword argum
|
||||||
|
|
||||||
For compatibility with legacy code, a
|
For compatibility with legacy code, a
|
||||||
`~PIL.TiffImagePlugin.ImageFileDirectory_v1` object may be passed
|
`~PIL.TiffImagePlugin.ImageFileDirectory_v1` object may be passed
|
||||||
in this field. This will be deprecated in a future version.
|
in this field. However, this is deprecated.
|
||||||
|
|
||||||
..versionadded:: 3.0.0
|
..versionadded:: 3.0.0
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user