[Python-checkins] CVS: python/dist/src/Lib mhlib.py,1.25,1.26
Eric S. Raymond
esr@users.sourceforge.net
Fri, 09 Feb 2001 16:11:10 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv24034
Modified Files:
mhlib.py
Log Message:
String method cleanup.
Index: mhlib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/mhlib.py,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -r1.25 -r1.26
*** mhlib.py 2001/02/09 10:28:34 1.25
--- mhlib.py 2001/02/10 00:11:08 1.26
***************
*** 77,81 ****
from stat import ST_NLINK
import re
- import string
import mimetools
import multifile
--- 77,80 ----
***************
*** 686,690 ****
hit = 0
for line in self.headers:
! if line[0] not in string.whitespace:
i = line.find(':')
if i > 0:
--- 685,689 ----
hit = 0
for line in self.headers:
! if not line[0].isspace():
i = line.find(':')
if i > 0:
***************
*** 886,890 ****
def fromstring(self, data):
- import string
new = []
for part in data.split(self.sep):
--- 885,888 ----
***************
*** 919,923 ****
while 1:
line = f.readline()
! if not line or line[0] not in string.whitespace:
break
text = text + line
--- 917,921 ----
while 1:
line = f.readline()
! if not line or not line[0].isspace():
break
text = text + line