response to Lint failure after resubmit

This commit is contained in:
paddywwoof 2019-08-04 19:20:43 +01:00
parent 5954bacc92
commit 4ce0b2c367
2 changed files with 2 additions and 4 deletions

View File

@ -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")

View File

@ -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)