mirror of
https://github.com/python-pillow/Pillow.git
synced 2026-02-22 07:00:30 +03:00
Fix self.decode typo (#9445)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
This commit is contained in:
parent
4777a0b318
commit
43c12af730
|
|
@ -579,10 +579,7 @@ class Parser:
|
|||
pass # not enough data
|
||||
else:
|
||||
flag = hasattr(im, "load_seek") or hasattr(im, "load_read")
|
||||
if flag or len(im.tile) != 1:
|
||||
# custom load code, or multiple tiles
|
||||
self.decode = None
|
||||
else:
|
||||
if not flag and len(im.tile) == 1:
|
||||
# initialize decoder
|
||||
im.load_prepare()
|
||||
d, e, o, a = im.tile[0]
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user