Skip to content

Commit 511359a

Browse files
committed
Putative fix for issue #211
1 parent 89b95cf commit 511359a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/future/types/newobject.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ def __unicode__(self):
8686
def __nonzero__(self):
8787
if hasattr(self, '__bool__'):
8888
return type(self).__bool__(self)
89+
if hasattr(self, '__len__'):
90+
return type(self).__len__(self)
8991
# object has no __nonzero__ method
9092
return True
9193

0 commit comments

Comments
 (0)