commit | b363c1f4455ec2ba875b6ef38d25b5a845dccc84 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Aug 01 18:17:23 2001 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Aug 01 18:17:23 2001 +0000 |
tree | 25a150985baa209f06324f2d7cc74b0b2cd568e9 | |
parent | 236ddd6834776371362a652929d2b1fc62cb9e72 [diff] |
Turn an octal constant into a hex constant.
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 @@ 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'