String method cleanup.

This commit is contained in:
Eric S. Raymond 2001-02-10 00:06:00 +00:00
parent cafd495dfe
commit c8c6aa201f
1 changed files with 1 additions and 3 deletions

View File

@ -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'