Merge pull request #5239 from radarhere/close

Improved close() docstring
This commit is contained in:
Hugo van Kemenade 2021-01-31 22:07:10 +02:00 committed by GitHub
commit 473b24ec4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -586,10 +586,10 @@ class Image:
This operation will destroy the image core and release its memory.
The image data will be unusable afterward.
This function is only required to close images that have not
had their file read and closed by the
:py:meth:`~PIL.Image.Image.load` method. See
:ref:`file-handling` for more information.
This function is required to close images that have multiple frames or
have not had their file read and closed by the
:py:meth:`~PIL.Image.Image.load` method. See :ref:`file-handling` for
more information.
"""
try:
if hasattr(self, "_close__fp"):