fix ord()-related error in py3 test
again, thanks to for tracking down the faulty line.
@@ -175,6 +175,9 @@ def is_binary_file(filename, nbytes=1024):
"""
with open(filename, 'rb') as ins:
for c in ins.read(nbytes):
+ if isinstance(c, six.integer_types):
+ oc = c
+ else:
oc = ord(c)
if 127 < oc < 256 or (oc < 32 and oc not in (9, 10, 13)):
return True
