From 3148acfef121b83dc995df3595104e5c612a6771 Mon Sep 17 00:00:00 2001 From: ZyX Date: Sun, 3 Aug 2014 10:13:44 +0400 Subject: [PATCH] Set __bool__ to __nonzero__ in DelayedEchoErr Method __nonzero__ was renamed to __bool__ in Python-3 --- powerline/lint/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/powerline/lint/__init__.py b/powerline/lint/__init__.py index 2d5dc292..9b3661e7 100644 --- a/powerline/lint/__init__.py +++ b/powerline/lint/__init__.py @@ -71,6 +71,8 @@ class DelayedEchoErr(EchoErr): def __nonzero__(self): return not not self.errs + __bool__ = __nonzero__ + class Spec(object): def __init__(self, **keys):