1.1 --- a/lib/__builtins__/int.py Sun Mar 26 18:03:40 2017 +0200
1.2 +++ b/lib/__builtins__/int.py Tue Mar 28 22:12:11 2017 +0200
1.3 @@ -21,7 +21,7 @@
1.4
1.5 from __builtins__.operator import _negate
1.6 from __builtins__.unicode import utf8string
1.7 -from native import isinstance as _isinstance, get_maxint, get_minint, \
1.8 +from native import get_maxint, get_minint, is_int, \
1.9 int_add, int_and, int_div, int_eq, int_gt, int_lt, int_mod, \
1.10 int_mul, int_ne, int_neg, int_not, int_or, int_pow, \
1.11 int_str, int_sub, int_xor
1.12 @@ -48,7 +48,7 @@
1.13
1.14 "Perform 'op' on this int and 'other' if appropriate."
1.15
1.16 - if _isinstance(other, int):
1.17 + if is_int(other):
1.18 return op(self, other)
1.19 else:
1.20 return NotImplemented
1.21 @@ -57,7 +57,7 @@
1.22
1.23 "Perform 'op' on 'other' and this int if appropriate."
1.24
1.25 - if _isinstance(other, int):
1.26 + if is_int(other):
1.27 return op(other, self)
1.28 else:
1.29 return NotImplemented