Update for py26

This commit is contained in:
Matt Martz 2016-01-11 11:11:00 -06:00
parent 0a8d016642
commit 1e038e5043

View file

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