From e9835070e2a9d822fc43e4b1e3ae1d3564b5cee2 Mon Sep 17 00:00:00 2001 From: schroeji Date: Fri, 25 Sep 2015 11:15:56 +0200 Subject: [PATCH] Fix for Travis CI --- i3pystatus/updates/yaourt.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/i3pystatus/updates/yaourt.py b/i3pystatus/updates/yaourt.py index 50a4770..4164731 100644 --- a/i3pystatus/updates/yaourt.py +++ b/i3pystatus/updates/yaourt.py @@ -10,16 +10,15 @@ from i3pystatus.updates import Backend class Yaourt(Backend): - def __init__(self, aur_only = True): + def __init__(self, aur_only=True): self.aur_only = aur_only - + @property - def updates(self): command = ["yaourt", "-Qua"] checkupdates = run_through_shell(command) if(self.aur_only): - return len( re.findall("^aur/", checkupdates.out, flags=re.M) ) + return len(re.findall("^aur/", checkupdates.out, flags=re.M)) return checkupdates.out.count("\n") Backend = Yaourt