mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Turn an octal constant into a hex constant.
This commit is contained in:
parent
236ddd6834
commit
b363c1f445
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue