From: Guido van Rossum Date: Wed, 1 Aug 2001 18:17:23 +0000 (+0000) Subject: Turn an octal constant into a hex constant. X-Git-Tag: v2.2a3~882 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b363c1f4455ec2ba875b6ef38d25b5a845dccc84;p=python Turn an octal constant into a hex constant. --- diff --git a/Lib/binhex.py b/Lib/binhex.py index 25e534957f..686f8d9a8b 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'