mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 12:17:14 +03:00
Variable in function should be snake_case
This commit is contained in:
parent
9951de08c0
commit
72a59d298a
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user