diff --git a/PIL/TiffImagePlugin.py b/PIL/TiffImagePlugin.py index d9edd62e1..b5e0a2eed 100644 --- a/PIL/TiffImagePlugin.py +++ b/PIL/TiffImagePlugin.py @@ -648,7 +648,7 @@ del _load_dispatch, _write_dispatch, idx, name # Legacy ImageFileDirectory support. 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:: @@ -668,7 +668,6 @@ class ImageFileDirectory_v1(ImageFileDirectory_v2): def __init__(self, *args, **kwargs): ImageFileDirectory_v2.__init__(self, *args, **kwargs) self._legacy_api = True - # insert deprecation warning here. tags = property(lambda self: self._tags_v1) tagdata = property(lambda self: self._tagdata) diff --git a/docs/handbook/image-file-formats.rst b/docs/handbook/image-file-formats.rst index 5d2cab518..c688c7441 100644 --- a/docs/handbook/image-file-formats.rst +++ b/docs/handbook/image-file-formats.rst @@ -512,7 +512,7 @@ The :py:meth:`~PIL.Image.Image.save` method can take the following keyword argum For compatibility with legacy code, a `~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