Fix all integral type checks that forget long (#555)

This commit is contained in:
Mark Mossberg
2017-11-09 11:28:24 -05:00
committed by GitHub
parent d341bc94ff
commit 9535ec8fd3
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ elif args.bbs:
break
def p(x):
return isinstance(x, int) and hex(x) or x
return isinstance(x, (int, long)) and hex(x) or x
print '%s -> [%s]'%(p(origin), ', '.join(map(p, targets)) )