summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-10 00:06:00 (GMT)
committerEric S. Raymond <esr@thyrsus.com>2001-02-10 00:06:00 (GMT)
commitc8c6aa201f03393ada787a1bde88cd2092d2361c (patch)
treefe2831d565aa3cc5635aef99040fbc59b474dade /Lib
parentcafd495dfed238afdf684ec1cede705bd93bfb5b (diff)
downloadcpython-c8c6aa201f03393ada787a1bde88cd2092d2361c.zip
cpython-c8c6aa201f03393ada787a1bde88cd2092d2361c.tar.gz
cpython-c8c6aa201f03393ada787a1bde88cd2092d2361c.tar.bz2
String method cleanup.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/binhex.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/binhex.py b/Lib/binhex.py
index 5137ccf..25e5349 100644
--- a/Lib/binhex.py
+++ b/Lib/binhex.py
@@ -24,7 +24,6 @@ hexbin(inputfilename, outputfilename)
import sys
import os
import struct
-import string
import binascii
__all__ = ["binhex","hexbin","Error"]
@@ -93,8 +92,7 @@ else:
fp = open(name)
data = open(name).read(256)
for c in data:
- if not c in string.whitespace \
- and (c<' ' or ord(c) > 0177):
+ if not c.isspace() and (c<' ' or ord(c) > 0177):
break
else:
finfo.Type = 'TEXT'