mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-24 22:24:48 +03:00
response to Lint failure after resubmit
This commit is contained in:
parent
5954bacc92
commit
4ce0b2c367
|
@ -636,7 +636,7 @@ class TestFileJpeg(PillowTestCase):
|
|||
def test_bad_exif_overflow_32(self):
|
||||
# This image has some corrupt exif offsets that unpack to values greater
|
||||
# than ssize_t on 32 bit systems
|
||||
im = Image.open('Tests/images/corrupt_exif.jpg')
|
||||
im = Image.open("Tests/images/corrupt_exif.jpg")
|
||||
|
||||
def test_photoshop(self):
|
||||
im = Image.open("Tests/images/photoshop-200dpi.jpg")
|
||||
|
|
|
@ -775,9 +775,7 @@ class ImageFileDirectory_v2(MutableMapping):
|
|||
fp.seek(offset)
|
||||
except OverflowError as e:
|
||||
if DEBUG:
|
||||
print(
|
||||
"Offset too large. Possibly corrupt EXIF data. ", e
|
||||
)
|
||||
print("Offset too large. Possibly corrupt EXIF data.", e)
|
||||
continue # ignore corrupt EXIF data
|
||||
data = ImageFile._safe_read(fp, size)
|
||||
fp.seek(here)
|
||||
|
|
Loading…
Reference in New Issue
Block a user