Don't redeclare (unused) loop variable

This commit is contained in:
Hugo van Kemenade 2022-04-10 19:50:49 +03:00
parent ee85e387ba
commit b863da6deb

View File

@ -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: