Update for py26

pull/13771/head
Matt Martz 9 years ago
parent 0a8d016642
commit 1e038e5043

@ -101,7 +101,7 @@ class ActionBase(with_metaclass(ABCMeta, object)):
return False return False
def _is_binary(self, module_path): def _is_binary(self, module_path):
textchars = bytearray({7,8,9,10,12,13,27} | set(range(0x20, 0x100)) - {0x7f}) textchars = bytearray(set([7, 8, 9, 10, 12, 13, 27]) | set(range(0x20, 0x100)) - set([0x7f]))
with open(module_path, 'rb') as f: with open(module_path, 'rb') as f:
start = f.read(1024) start = f.read(1024)

Loading…
Cancel
Save