Skip to content

Commit 47f7d16

Browse files
committed
Fixed code, actually tested it this time >_<
1 parent 2fdbf3e commit 47f7d16

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

future/builtins/misc.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
from future.builtins.newnext import newnext as next
6060
from future.builtins.newround import newround as round
6161
from future.builtins.newsuper import newsuper as super
62+
from future.types.newint import newint
6263

6364
_SENTINEL = object()
6465

@@ -70,11 +71,11 @@ def pow(x, y, z=_SENTINEL):
7071
equivalent to (x**y) % z, but may be more efficient (e.g. for ints).
7172
"""
7273
# Handle newints
73-
if isinstance(x, float.builtins.int):
74+
if isinstance(x, newint):
7475
x = long(x)
75-
if isinstance(y, float.builtins.int):
76+
if isinstance(y, newint):
7677
y = long(y)
77-
if isinstance(z, float.builtins.int):
78+
if isinstance(z, newint):
7879
z = long(z)
7980

8081
try:

0 commit comments

Comments
 (0)