[general] black code some more

This commit is contained in:
tobi-wan-kenobi 2020-05-14 20:36:01 +02:00
parent 526560ea54
commit bc382e67d3
3 changed files with 12 additions and 2 deletions

View file

@ -10,6 +10,7 @@ import logging
import threading
import bumblebee_status.discover
bumblebee_status.discover.discover()
import core.config

View file

@ -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"))

View file

@ -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