From bc382e67d347be587c8b9792c3e077061e089ca5 Mon Sep 17 00:00:00 2001 From: tobi-wan-kenobi Date: Thu, 14 May 2020 20:36:01 +0200 Subject: [PATCH] [general] black code some more --- bumblebee-status | 1 + bumblebee_status/modules/contrib/arch-update.py | 4 +++- bumblebee_status/util/cli.py | 9 ++++++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/bumblebee-status b/bumblebee-status index ad9c67f..dcaa8bd 100755 --- a/bumblebee-status +++ b/bumblebee-status @@ -10,6 +10,7 @@ import logging import threading import bumblebee_status.discover + bumblebee_status.discover.discover() import core.config diff --git a/bumblebee_status/modules/contrib/arch-update.py b/bumblebee_status/modules/contrib/arch-update.py index a1ea550..990cdbb 100644 --- a/bumblebee_status/modules/contrib/arch-update.py +++ b/bumblebee_status/modules/contrib/arch-update.py @@ -34,7 +34,9 @@ class Module(core.module.Module): def update(self): self.__error = False - code, result = util.cli.execute("checkupdates", ignore_errors=True, return_exitcode=True) + code, result = util.cli.execute( + "checkupdates", ignore_errors=True, return_exitcode=True + ) if code == 0: self.__packages = len(result.split("\n")) diff --git a/bumblebee_status/util/cli.py b/bumblebee_status/util/cli.py index 31a2955..209291f 100644 --- a/bumblebee_status/util/cli.py +++ b/bumblebee_status/util/cli.py @@ -4,7 +4,14 @@ import subprocess import logging -def execute(cmd, wait=True, ignore_errors=False, include_stderr=False, env=None, return_exitcode=False): +def execute( + cmd, + wait=True, + ignore_errors=False, + include_stderr=False, + env=None, + return_exitcode=False, +): """Executes a commandline utility and returns its output :param cmd: the command (as string) to execute, returns the program's output