Merge "Python 3: set __bool__() method on Namespace"

This commit is contained in:
Jenkins 2015-05-18 22:35:48 +00:00 committed by Gerrit Code Review
commit 9f7bf4efdd

View File

@ -89,3 +89,4 @@ class Namespace(object):
def __nonzero__(self):
return len(self.__dict__) > 0
__bool__ = __nonzero__