Set __bool__ to __nonzero__ in DelayedEchoErr
Method __nonzero__ was renamed to __bool__ in Python-3
This commit is contained in:
parent
b99ad3904e
commit
3148acfef1
|
@ -71,6 +71,8 @@ class DelayedEchoErr(EchoErr):
|
|||
def __nonzero__(self):
|
||||
return not not self.errs
|
||||
|
||||
__bool__ = __nonzero__
|
||||
|
||||
|
||||
class Spec(object):
|
||||
def __init__(self, **keys):
|
||||
|
|
Loading…
Reference in New Issue