Merge "Python 3: set __bool__() method on Namespace"
This commit is contained in:
commit
9f7bf4efdd
@ -89,3 +89,4 @@ class Namespace(object):
|
|||||||
|
|
||||||
def __nonzero__(self):
|
def __nonzero__(self):
|
||||||
return len(self.__dict__) > 0
|
return len(self.__dict__) > 0
|
||||||
|
__bool__ = __nonzero__
|
||||||
|
Loading…
Reference in New Issue
Block a user