[general] black code some more
This commit is contained in:
parent
526560ea54
commit
bc382e67d3
3 changed files with 12 additions and 2 deletions
|
@ -10,6 +10,7 @@ import logging
|
|||
import threading
|
||||
|
||||
import bumblebee_status.discover
|
||||
|
||||
bumblebee_status.discover.discover()
|
||||
|
||||
import core.config
|
||||
|
|
|
@ -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"))
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue