From edc27719095a17462473911582760a5a8aaf3806 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Wed, 5 May 2021 23:52:59 +1000 Subject: [PATCH] Corrected code references in docstring --- src/PIL/TiffImagePlugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PIL/TiffImagePlugin.py b/src/PIL/TiffImagePlugin.py index 17e29ba4c..5d046761a 100644 --- a/src/PIL/TiffImagePlugin.py +++ b/src/PIL/TiffImagePlugin.py @@ -446,12 +446,12 @@ class ImageFileDirectory_v2(MutableMapping): Tags will be found in the private attributes self._tagdata, and in self._tags_v2 once decoded. - Self.legacy_api is a value for internal use, and shouldn't be + self.legacy_api is a value for internal use, and shouldn't be changed from outside code. In cooperation with the ImageFileDirectory_v1 class, if legacy_api is true, then decoded - tags will be populated into both _tags_v1 and _tags_v2. _Tags_v2 + tags will be populated into both _tags_v1 and _tags_v2. _tags_v2 will be used if this IFD is used in the TIFF save routine. Tags - should be read from tags_v1 if legacy_api == true. + should be read from _tags_v1 if legacy_api == true. """