]> granicus.if.org Git - python/commitdiff
Turn an octal constant into a hex constant.
authorGuido van Rossum <guido@python.org>
Wed, 1 Aug 2001 18:17:23 +0000 (18:17 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 1 Aug 2001 18:17:23 +0000 (18:17 +0000)
Lib/binhex.py

index 25e534957f56feda03553c238faaf93f9e3e4f73..686f8d9a8b9da4374aa49c0542cd5917d887bd3c 100644 (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'