From 1ad82d5c4b7fe2d3fcb9a2ac67100aa18fcf55e7 Mon Sep 17 00:00:00 2001 From: Edgar Date: Mon, 24 Oct 2022 15:57:34 +0200 Subject: [PATCH] :art: Fixed formating --- update.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/update.py b/update.py index fe12e44..6257eeb 100644 --- a/update.py +++ b/update.py @@ -34,15 +34,15 @@ def print_progress_bar(text, done, total, width): sys.stdout.flush() -def flat_add(l, x): +def flat_add(lst, x): if isinstance(x, int): - l.append(x) - return l + lst.append(x) + return lst elif isinstance(x, str): - l.append(x) - return l + lst.append(x) + return lst else: - return l + x + return lst + x def fetch_modules(config, relative_path, download_directory): @@ -297,6 +297,7 @@ def fetch_url(src, dst): sys.stderr.write(f"\n\nERROR: could not fetch {src}, {e.reason}\n") sys.exit(-1) + if __name__ == '__main__': check_for_yaml() main(sys.argv)