From b363c1f4455ec2ba875b6ef38d25b5a845dccc84 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 1 Aug 2001 18:17:23 +0000 Subject: [PATCH] Turn an octal constant into a hex constant. --- Lib/binhex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/binhex.py b/Lib/binhex.py index 25e534957f5..686f8d9a8b9 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'