diff --git a/src/yunohost/log.py b/src/yunohost/log.py index d9cb86242..24ecc6713 100644 --- a/src/yunohost/log.py +++ b/src/yunohost/log.py @@ -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 diff --git a/src/yunohost/utils/packages.py b/src/yunohost/utils/packages.py index 4fdf93f9a..3105bc4c7 100644 --- a/src/yunohost/utils/packages.py +++ b/src/yunohost/utils/packages.py @@ -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 >.>