Skip to content

Commit dd0f846

Browse files
author
bstorm
committed
actually assign in the comment loop
1 parent 35ea55f commit dd0f846

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_imageload/pnm/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def load(f, header, *, bitmap=None, palette=None):
5757
next_byte = f.read(1)
5858
if next_byte == b"#":
5959
while True:
60-
f.read(1)
60+
next_byte = f.read(1)
6161
if not next_byte:
6262
raise RuntimeError("Unsupported image format")
6363
if next_byte == b"\n":

0 commit comments

Comments
 (0)