diff --git a/Lib/binhex.py b/Lib/binhex.py index 5137ccf9562..25e534957f5 100644 --- a/Lib/binhex.py +++ b/Lib/binhex.py @@ -24,7 +24,6 @@ import sys import os import struct -import string import binascii __all__ = ["binhex","hexbin","Error"] @@ -93,8 +92,7 @@ def getfileinfo(name): 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'