fix format

This commit is contained in:
Kay0u 2021-02-02 17:15:45 +01:00
parent 3bd314e940
commit 9faf2d89a2
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D
2 changed files with 6 additions and 2 deletions

View file

@ -168,7 +168,9 @@ def log_show(
def _filter_lines(lines, filters=[]):
filters = [re.compile(f) for f in filters]
return [line for line in lines if not any(f.search(line.strip()) for f in filters)]
return [
line for line in lines if not any(f.search(line.strip()) for f in filters)
]
# Normalize log/metadata paths and filenames
abs_path = path

View file

@ -120,7 +120,9 @@ def _list_upgradable_apt_packages():
upgradable_raw = check_output("LC_ALL=C apt list --upgradable")
# Dirty parsing of the output
upgradable_raw = [line.strip() for line in upgradable_raw.split("\n") if line.strip()]
upgradable_raw = [
line.strip() for line in upgradable_raw.split("\n") if line.strip()
]
for line in upgradable_raw:
# Remove stupid warning and verbose messages >.>