We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6aa64b commit 64edfe1Copy full SHA for 64edfe1
1 file changed
Lib/binhex.py
@@ -24,7 +24,6 @@
24
import sys
25
import os
26
import struct
27
-import string
28
import binascii
29
30
__all__ = ["binhex","hexbin","Error"]
@@ -93,8 +92,7 @@ def getfileinfo(name):
93
92
fp = open(name)
94
data = open(name).read(256)
95
for c in data:
96
- if not c in string.whitespace \
97
- and (c<' ' or ord(c) > 0177):
+ if not c.isspace() and (c<' ' or ord(c) > 0177):
98
break
99
else:
100
finfo.Type = 'TEXT'
0 commit comments