mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 09:14:27 +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):
|
||||
raise SyntaxError("Layer block too short for number of layers requested")
|
||||
|
||||
for i in range(abs(ct)):
|
||||
for _ in range(abs(ct)):
|
||||
|
||||
# bounding box
|
||||
y0 = i32(read(4))
|
||||
|
@ -193,7 +193,7 @@ def _layerinfo(fp, ct_bytes):
|
|||
if len(types) > 4:
|
||||
continue
|
||||
|
||||
for i in types:
|
||||
for _ in types:
|
||||
type = i16(read(2))
|
||||
|
||||
if type == 65535:
|
||||
|
|
Loading…
Reference in New Issue
Block a user