From edee95b57a1bf4b03b8f27cd67436e29a3b87209 Mon Sep 17 00:00:00 2001 From: Lucas Souto Date: Fri, 7 Sep 2018 22:38:15 -0300 Subject: [PATCH] Fix code for lint --- bumblebee/modules/arch-update.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bumblebee/modules/arch-update.py b/bumblebee/modules/arch-update.py index 7f290d8..26215c6 100644 --- a/bumblebee/modules/arch-update.py +++ b/bumblebee/modules/arch-update.py @@ -6,6 +6,7 @@ import bumblebee.input import bumblebee.output import bumblebee.engine + class Module(bumblebee.engine.Module): def __init__(self, engine, config): widget = bumblebee.output.Widget(full_text=self.utilization) @@ -17,7 +18,7 @@ class Module(bumblebee.engine.Module): "checkupdates", stdout=subprocess.PIPE, shell=True) p_status = p.wait() - + if p_status == 0: (output, err) = p.communicate() @@ -35,7 +36,7 @@ class Module(bumblebee.engine.Module): return self.check_updates() == 0 def update(self, widgets): - self.packages = self.check_updates() + self.packages = self.check_updates() def state(self, widget): return self.threshold_state(self.packages, 1, 100)