Apply suggestions from code review

Co-Authored-By: radarhere <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
Hugo 2019-02-03 22:43:20 +11:00 committed by GitHub
parent ce915162ab
commit 5da26008eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -267,7 +267,7 @@ class TestFileJpeg(PillowTestCase):
1: 'R98',
2: b'0100',
4097: 2272,
4098: 1704
4098: 1704,
})
def test_progressive_compat(self):

View File

@ -491,8 +491,8 @@ def _getexif(self):
exif[0x8825] = _fixup_dict(info)
# get interop
try:
# exif field 0xa005 is an offset pointer to the location
# of the nested embedded interop exif ifd.
# Exif field 0xa005 is an offset pointer to the location
# of the nested embedded interop Exif IFD.
# It should be a long, but may be corrupted.
file.seek(exif[0xa005])
except (KeyError, TypeError):