mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Define t variable in a more appropriate place
This commit is contained in:
parent
5a49375d4f
commit
68663ad352
|
@ -196,13 +196,15 @@ class ImageFile(Image.Image):
|
|||
except AttributeError:
|
||||
prefix = b""
|
||||
|
||||
# Buffer length read; assign a default value
|
||||
t = 0
|
||||
|
||||
for d, e, o, a in self.tile:
|
||||
d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
|
||||
seek(o)
|
||||
try:
|
||||
d.setimage(self.im, e)
|
||||
except ValueError:
|
||||
t = None
|
||||
continue
|
||||
b = prefix
|
||||
t = len(b)
|
||||
|
|
Loading…
Reference in New Issue
Block a user