Turn an octal constant into a hex constant.

This commit is contained in:
Guido van Rossum 2001-08-01 18:17:23 +00:00
parent 236ddd6834
commit b363c1f445
1 changed files with 1 additions and 1 deletions

View File

@ -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'