[Python-checkins] CVS: python/dist/src/Lib binhex.py,1.19,1.20

Eric S. Raymond esr@users.sourceforge.net
Fri, 09 Feb 2001 16:06:02 -0800


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv23651

Modified Files:
	binhex.py 
Log Message:
String method cleanup.


Index: binhex.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/binhex.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -r1.19 -r1.20
*** binhex.py	2001/02/09 05:07:04	1.19
--- binhex.py	2001/02/10 00:06:00	1.20
***************
*** 25,29 ****
  import os
  import struct
- import string
  import binascii
  
--- 25,28 ----
***************
*** 94,99 ****
          data = open(name).read(256)
          for c in data:
!             if not c in string.whitespace \
!                 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) > 0177):
                  break
          else: