Set __bool__ to __nonzero__ in DelayedEchoErr

Method __nonzero__ was renamed to __bool__ in Python-3
This commit is contained in:
ZyX 2014-08-03 10:13:44 +04:00
parent b99ad3904e
commit 3148acfef1
1 changed files with 2 additions and 0 deletions

View File

@ -71,6 +71,8 @@ class DelayedEchoErr(EchoErr):
def __nonzero__(self): def __nonzero__(self):
return not not self.errs return not not self.errs
__bool__ = __nonzero__
class Spec(object): class Spec(object):
def __init__(self, **keys): def __init__(self, **keys):