Skip to content

Commit 1663263

Browse files
author
Matt Land
committed
remove reads that loose data
1 parent 157ded5 commit 1663263

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

adafruit_imageload/pnm/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,9 @@ def load(f, header, *, bitmap=None, palette=None):
4141
while True:
4242
# We have all we need at length 3
4343
if len(pnm_header) == 3:
44-
f.read(1)
4544
break
4645
if magic_number.startswith(b"P1") or magic_number.startswith(b"P4"):
4746
if len(pnm_header) == 2:
48-
f.read(1)
4947
from . import pbm
5048

5149
return pbm.load(

0 commit comments

Comments
 (0)