From 72a59d298a578ee02452a615da16c005f28c664b Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 15 Apr 2022 19:00:23 +1000 Subject: [PATCH] Variable in function should be snake_case --- src/PIL/TiffImagePlugin.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/PIL/TiffImagePlugin.py b/src/PIL/TiffImagePlugin.py index 8b7144c83..000429991 100644 --- a/src/PIL/TiffImagePlugin.py +++ b/src/PIL/TiffImagePlugin.py @@ -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")