Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b363c1f

Browse files
committed
Turn an octal constant into a hex constant.
1 parent 236ddd6 commit b363c1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/binhex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def getfileinfo(name):
9292
fp = open(name)
9393
data = open(name).read(256)
9494
for c in data:
95-
if not c.isspace() and (c<' ' or ord(c) > 0177):
95+
if not c.isspace() and (c<' ' or ord(c) > 0x7f):
9696
break
9797
else:
9898
finfo.Type = 'TEXT'

0 commit comments

Comments
 (0)