Skip to content

Commit 70b707b

Browse files
author
bstorm
committed
what happens with bytes array
1 parent f531e9e commit 70b707b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_imageload/pnm/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ def load(f, header, *, bitmap=None, palette=None):
6363
if next_byte == b"\n":
6464
break
6565
if next_byte.isdigit():
66-
value = b""
66+
value = bytesarray()
6767
while True:
6868
if not next_byte.isdigit():
6969
break
70-
value += next_byte
70+
value.append(next_byte)
7171
next_byte = f.read(1)
7272
if not next_byte:
7373
raise RuntimeError("Unsupported image format")

0 commit comments

Comments
 (0)