Make pylint happy

This commit is contained in:
mw 2019-09-02 16:42:25 +02:00
parent 4743558a68
commit 0b9829bc77

View file

@ -71,12 +71,12 @@ class Module(bumblebee.engine.Module):
pid = process.pid pid = process.pid
os.kill(pid, 9) os.kill(pid, 9)
def state(self, widget): def state(self, _):
if self._active: if self._active:
return "activated" return "activated"
return "deactivated" return "deactivated"
def _toggle(self, event): def _toggle(self, _):
missing = self._check_requirements() missing = self._check_requirements()
if missing: if missing:
logging.warning("Could not run caffeine - missing {}!".format(", ".join(missing))) logging.warning("Could not run caffeine - missing {}!".format(", ".join(missing)))