Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e247424

Browse files
committed
Fix TypeError: __bool__ should return bool, returned int in python3. __bool__ is converted from __nozero__ by 2to3
so change this to return bool
1 parent 677f9cc commit e247424

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/markers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def _recache(self):
121121
self._marker_function()
122122

123123
def __nonzero__(self):
124-
return len(self._path.vertices)
124+
return bool(len(self._path.vertices))
125125

126126
def is_filled(self):
127127
return self._filled

0 commit comments

Comments
 (0)