mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-25 14:44:45 +03:00
Apply suggestions from code review
Co-Authored-By: radarhere <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
parent
ce915162ab
commit
5da26008eb
|
@ -267,7 +267,7 @@ class TestFileJpeg(PillowTestCase):
|
||||||
1: 'R98',
|
1: 'R98',
|
||||||
2: b'0100',
|
2: b'0100',
|
||||||
4097: 2272,
|
4097: 2272,
|
||||||
4098: 1704
|
4098: 1704,
|
||||||
})
|
})
|
||||||
|
|
||||||
def test_progressive_compat(self):
|
def test_progressive_compat(self):
|
||||||
|
|
|
@ -491,8 +491,8 @@ def _getexif(self):
|
||||||
exif[0x8825] = _fixup_dict(info)
|
exif[0x8825] = _fixup_dict(info)
|
||||||
# get interop
|
# get interop
|
||||||
try:
|
try:
|
||||||
# exif field 0xa005 is an offset pointer to the location
|
# Exif field 0xa005 is an offset pointer to the location
|
||||||
# of the nested embedded interop exif ifd.
|
# of the nested embedded interop Exif IFD.
|
||||||
# It should be a long, but may be corrupted.
|
# It should be a long, but may be corrupted.
|
||||||
file.seek(exif[0xa005])
|
file.seek(exif[0xa005])
|
||||||
except (KeyError, TypeError):
|
except (KeyError, TypeError):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user