Skip to content

Commit 8efb0b1

Browse files
author
bstorm
committed
remove re
1 parent 8294e85 commit 8efb0b1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

adafruit_imageload/pnm/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ def load(f, header, *, bitmap=None, palette=None):
5656
if next_byte == b"#":
5757
if next_byte != b"\n":
5858
continue
59-
dec_re = re.compile(r"\d")
60-
if dec_re.match(next_byte):
59+
if next_byte.isdigit():
6160
pnm_header.append(next_byte)
6261
continue
6362

0 commit comments

Comments
 (0)