Merge pull request #85 from radarhere/cleanup-names

Variable in function should be snake_case
This commit is contained in:
Hugo van Kemenade 2022-04-15 12:58:09 +03:00 committed by GitHub
commit a0b98d805e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1880,16 +1880,16 @@ class AppendingTiffWriter:
self.whereToWriteNewIFDOffset = None
self.offsetOfNewPage = 0
self.IIMM = IIMM = self.f.read(4)
if not IIMM:
self.IIMM = iimm = self.f.read(4)
if not iimm:
# empty file - first page
self.isFirst = True
return
self.isFirst = False
if IIMM == b"II\x2a\x00":
if iimm == b"II\x2a\x00":
self.setEndian("<")
elif IIMM == b"MM\x00\x2a":
elif iimm == b"MM\x00\x2a":
self.setEndian(">")
else:
raise RuntimeError("Invalid TIFF file header")