mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 17:54:32 +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:
|
except AttributeError:
|
||||||
prefix = b""
|
prefix = b""
|
||||||
|
|
||||||
|
# Buffer length read; assign a default value
|
||||||
|
t = 0
|
||||||
|
|
||||||
for d, e, o, a in self.tile:
|
for d, e, o, a in self.tile:
|
||||||
d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
|
d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
|
||||||
seek(o)
|
seek(o)
|
||||||
try:
|
try:
|
||||||
d.setimage(self.im, e)
|
d.setimage(self.im, e)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
t = None
|
|
||||||
continue
|
continue
|
||||||
b = prefix
|
b = prefix
|
||||||
t = len(b)
|
t = len(b)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user