mirror of
https://github.com/powerline/powerline.git
synced 2025-04-08 19:25:04 +02:00
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…
x
Reference in New Issue
Block a user