🎨 Fixed formating
This commit is contained in:
parent
9d2c6f31db
commit
1ad82d5c4b
13
update.py
13
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user