Turn an octal constant into a hex constant.
This commit is contained in:
parent
236ddd6834
commit
b363c1f445
|
@ -92,7 +92,7 @@ else:
|
|||
fp = open(name)
|
||||
data = open(name).read(256)
|
||||
for c in data:
|
||||
if not c.isspace() and (c<' ' or ord(c) > 0177):
|
||||
if not c.isspace() and (c<' ' or ord(c) > 0x7f):
|
||||
break
|
||||
else:
|
||||
finfo.Type = 'TEXT'
|
||||
|
|
Loading…
Reference in New Issue