Skip to content

Commit 783b6cd

Browse files
committed
Minor bug in demo program PDF_display.py
1 parent dc0f740 commit 783b6cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demo/PDF_display.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ def getint(v):
7373
return int(v)
7474
except ValueError:
7575
pass
76-
a = "0"
7776
if not isinstance(v, types.StringTypes):
78-
return a
77+
return 0
78+
a = "0"
7979
for d in v:
8080
if d in "0123456789":
8181
a += d

0 commit comments

Comments
 (0)