[Python-checkins] CVS: python/dist/src/Lib binhex.py,1.20,1.21
Guido van Rossum
gvanrossum@users.sourceforge.net
Wed, 01 Aug 2001 11:17:25 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv9585
Modified Files:
binhex.py
Log Message:
Turn an octal constant into a hex constant.
Index: binhex.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/binhex.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** binhex.py 2001/02/10 00:06:00 1.20
--- binhex.py 2001/08/01 18:17:23 1.21
***************
*** 93,97 ****
data = open(name).read(256)
for c in data:
! if not c.isspace() and (c<' ' or ord(c) > 0177):
break
else:
--- 93,97 ----
data = open(name).read(256)
for c in data:
! if not c.isspace() and (c<' ' or ord(c) > 0x7f):
break
else: