diff options
author | Guido van Rossum <guido@python.org> | 2001-08-01 18:17:23 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-08-01 18:17:23 (GMT) |
commit | b363c1f4455ec2ba875b6ef38d25b5a845dccc84 (patch) | |
tree | 25a150985baa209f06324f2d7cc74b0b2cd568e9 /Lib | |
parent | 236ddd6834776371362a652929d2b1fc62cb9e72 (diff) | |
download | cpython-b363c1f4455ec2ba875b6ef38d25b5a845dccc84.zip cpython-b363c1f4455ec2ba875b6ef38d25b5a845dccc84.tar.gz cpython-b363c1f4455ec2ba875b6ef38d25b5a845dccc84.tar.bz2 |
Turn an octal constant into a hex constant.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/binhex.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/binhex.py b/Lib/binhex.py index 25e5349..686f8d9 100644 --- a/Lib/binhex.py +++ b/Lib/binhex.py @@ -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' |