Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 43c12af

Browse files
bysiberradarhere
andauthored
Fix self.decode typo (#9445)
Co-authored-by: Andrew Murray <[email protected]>
1 parent 4777a0b commit 43c12af

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/PIL/ImageFile.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -579,10 +579,7 @@ def feed(self, data: bytes) -> None:
579579
pass # not enough data
580580
else:
581581
flag = hasattr(im, "load_seek") or hasattr(im, "load_read")
582-
if flag or len(im.tile) != 1:
583-
# custom load code, or multiple tiles
584-
self.decode = None
585-
else:
582+
if not flag and len(im.tile) == 1:
586583
# initialize decoder
587584
im.load_prepare()
588585
d, e, o, a = im.tile[0]

0 commit comments

Comments
 (0)