🎨 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()
|
sys.stdout.flush()
|
||||||
|
|
||||||
|
|
||||||
def flat_add(l, x):
|
def flat_add(lst, x):
|
||||||
if isinstance(x, int):
|
if isinstance(x, int):
|
||||||
l.append(x)
|
lst.append(x)
|
||||||
return l
|
return lst
|
||||||
elif isinstance(x, str):
|
elif isinstance(x, str):
|
||||||
l.append(x)
|
lst.append(x)
|
||||||
return l
|
return lst
|
||||||
else:
|
else:
|
||||||
return l + x
|
return lst + x
|
||||||
|
|
||||||
|
|
||||||
def fetch_modules(config, relative_path, download_directory):
|
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.stderr.write(f"\n\nERROR: could not fetch {src}, {e.reason}\n")
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
check_for_yaml()
|
check_for_yaml()
|
||||||
main(sys.argv)
|
main(sys.argv)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user