Skip to content

Commit fe645ba

Browse files
committed
Fix newint bool in py3
1 parent 4657ad2 commit fe645ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/future/types/newint.py

+3
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,9 @@ def __bool__(self):
284284
"""
285285
So subclasses can override this, Py3-style
286286
"""
287+
if PY3:
288+
return super(newint, self).__bool__()
289+
287290
return super(newint, self).__nonzero__()
288291

289292
def __native__(self):

0 commit comments

Comments
 (0)