8000 Fix __nonzero__ for python 3 · matplotlib/matplotlib@5239042 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5239042

Browse files
committed
Fix __nonzero__ for python 3
1 parent a8f8b6f commit 5239042

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/testing/jpl_units/UnitDbl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def __nonzero__( self ):
116116
= RETURN VALUE
117117
- Returns true if the value is non-zero.
118118
"""
119-
return self._value.__nonzero__()
119+
return self._value.__bool__()
120120

121121
if six.PY3:
122122
__bool__ = __nonzero__

0 commit comments

Comments
 (0)
0