Skip to content

Commit 35ea55f

Browse files
author
bstorm
committed
fix sense of test for newline
1 parent d8b34e2 commit 35ea55f

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
@@ -60,7 +60,7 @@ def load(f, header, *, bitmap=None, palette=None):
6060
f.read(1)
6161
if not next_byte:
6262
raise RuntimeError("Unsupported image format")
63-
if next_byte != b"\n":
63+
if next_byte == b"\n":
6464
break
6565
if next_byte.isdigit():
6666
pnm_header.append(int.from_bytes(next_byte, "big"))

0 commit comments

Comments
 (0)