mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
fix format
This commit is contained in:
parent
3bd314e940
commit
9faf2d89a2
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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 >.>
|
||||
|
|
Loading…
Add table
Reference in a new issue