mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-05-05 00:13:42 +03:00
Don't redeclare (unused) loop variable
This commit is contained in:
parent
ee85e387ba
commit
b863da6deb
|
@ -178,7 +178,7 @@ def _layerinfo(fp, ct_bytes):
|
||||||
if ct_bytes < (abs(ct) * 20):
|
if ct_bytes < (abs(ct) * 20):
|
||||||
raise SyntaxError("Layer block too short for number of layers requested")
|
raise SyntaxError("Layer block too short for number of layers requested")
|
||||||
|
|
||||||
for i in range(abs(ct)):
|
for _ in range(abs(ct)):
|
||||||
|
|
||||||
# bounding box
|
# bounding box
|
||||||
y0 = i32(read(4))
|
y0 = i32(read(4))
|
||||||
|
@ -193,7 +193,7 @@ def _layerinfo(fp, ct_bytes):
|
||||||
if len(types) > 4:
|
if len(types) > 4:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
for i in types:
|
for _ in types:
|
||||||
type = i16(read(2))
|
type = i16(read(2))
|
||||||
|
|
||||||
if type == 65535:
|
if type == 65535:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user