summaryrefslogtreecommitdiffstats
path: root/Lib/mhlib.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-10 00:22:33 (GMT)
committerEric S. Raymond <esr@thyrsus.com>2001-02-10 00:22:33 (GMT)
commit6e025bcde84ec358734a116cefcc4acc357ee0b1 (patch)
tree0e9d1e6ec181e63e8a88d7af05e2e9e49f2ca294 /Lib/mhlib.py
parentc8c6aa201f03393ada787a1bde88cd2092d2361c (diff)
downloadcpython-6e025bcde84ec358734a116cefcc4acc357ee0b1.zip
cpython-6e025bcde84ec358734a116cefcc4acc357ee0b1.tar.gz
cpython-6e025bcde84ec358734a116cefcc4acc357ee0b1.tar.bz2
String method cleanup.
Diffstat (limited to 'Lib/mhlib.py')
-rw-r--r--Lib/mhlib.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/mhlib.py b/Lib/mhlib.py
index aab560b..0302c30 100644
--- a/Lib/mhlib.py
+++ b/Lib/mhlib.py
@@ -76,7 +76,6 @@ import os
import sys
from stat import ST_NLINK
import re
-import string
import mimetools
import multifile
import shutil
@@ -685,7 +684,7 @@ class Message(mimetools.Message):
headers = []
hit = 0
for line in self.headers:
- if line[0] not in string.whitespace:
+ if not line[0].isspace():
i = line.find(':')
if i > 0:
hit = pred(line[:i].lower())
@@ -885,7 +884,6 @@ class IntSet:
self.normalize()
def fromstring(self, data):
- import string
new = []
for part in data.split(self.sep):
list = []
@@ -918,7 +916,7 @@ def pickline(file, key, casefold = 1):
text = line[len(key)+1:]
while 1:
line = f.readline()
- if not line or line[0] not in string.whitespace:
+ if not line or not line[0].isspace():
break
text = text + line
return text.strip()