1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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
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:
start = f.read(1024)