8000 Fix is_int on Py3 · thecodingchicken/python-future@89232fb · GitHub
[go: up one dir, main page]

Skip to content

Commit 89232fb

Browse files
committed
Fix is_int on Py3
1 parent f4aff0b commit 89232fb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

future/utils/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,10 @@ def is_bytes(obj):
385385

386386

387387
def is_int(obj):
388-
return isinstance(obj, (int, long))
388+
if PY2:
389+
return isinstance(obj, (int, long))
390+
else:
391+
return isinstance(obj, int)
389392

390393

391394
__all__ = ['PY3', 'PY2', 'PYPY', 'python_2_unicode_compatible',

0 commit comments

Comments
 (0)
0