mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Apply suggestions from code review
Co-Authored-By: radarhere <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
parent
93a2dce8f9
commit
39cd976492
|
@ -26,11 +26,11 @@ type for PNG files, causing "image/apng" to be returned as the MIME type of
|
||||||
both APNG and PNG files. This has been fixed so the MIME type of PNG files is
|
both APNG and PNG files. This has been fixed so the MIME type of PNG files is
|
||||||
"image/png".
|
"image/png".
|
||||||
|
|
||||||
File Closing
|
File closing
|
||||||
^^^^^^^^^^^^
|
^^^^^^^^^^^^
|
||||||
|
|
||||||
A regression caused an unsupported image file to report a
|
A regression caused an unsupported image file to report a
|
||||||
``ValueError: seek of closed file`` exception instead of an ``OSError``. This
|
``ValueError: seek of closed file`` exception instead of an ``OSError``. This
|
||||||
has been fixed by ensuring that image plugins only close their internal `__fp`
|
has been fixed by ensuring that image plugins only close their internal ``__fp``
|
||||||
if they are not the same as ImageFile's `fp`, allowing each to manage their own
|
if they are not the same as ``ImageFile``'s ``fp``, allowing each to manage their own
|
||||||
file pointers.
|
file pointers.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user