Fix code for lint
This commit is contained in:
parent
39233e5a75
commit
edee95b57a
1 changed files with 3 additions and 2 deletions
|
@ -6,6 +6,7 @@ import bumblebee.input
|
||||||
import bumblebee.output
|
import bumblebee.output
|
||||||
import bumblebee.engine
|
import bumblebee.engine
|
||||||
|
|
||||||
|
|
||||||
class Module(bumblebee.engine.Module):
|
class Module(bumblebee.engine.Module):
|
||||||
def __init__(self, engine, config):
|
def __init__(self, engine, config):
|
||||||
widget = bumblebee.output.Widget(full_text=self.utilization)
|
widget = bumblebee.output.Widget(full_text=self.utilization)
|
||||||
|
@ -17,7 +18,7 @@ class Module(bumblebee.engine.Module):
|
||||||
"checkupdates", stdout=subprocess.PIPE, shell=True)
|
"checkupdates", stdout=subprocess.PIPE, shell=True)
|
||||||
|
|
||||||
p_status = p.wait()
|
p_status = p.wait()
|
||||||
|
|
||||||
if p_status == 0:
|
if p_status == 0:
|
||||||
(output, err) = p.communicate()
|
(output, err) = p.communicate()
|
||||||
|
|
||||||
|
@ -35,7 +36,7 @@ class Module(bumblebee.engine.Module):
|
||||||
return self.check_updates() == 0
|
return self.check_updates() == 0
|
||||||
|
|
||||||
def update(self, widgets):
|
def update(self, widgets):
|
||||||
self.packages = self.check_updates()
|
self.packages = self.check_updates()
|
||||||
|
|
||||||
def state(self, widget):
|
def state(self, widget):
|
||||||
return self.threshold_state(self.packages, 1, 100)
|
return self.threshold_state(self.packages, 1, 100)
|
||||||
|
|
Loading…
Reference in a new issue