Skip to content

Commit 8a1e764

Browse files
committed
Minor style fix in scripts/fetch_godot.py&scripts/python_distrib.py
1 parent 317f9ed commit 8a1e764

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

β€Žscripts/fetch_godot.pyβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def fetch_godot_binary(
136136
if buff.write(rep.read(2**20)) == 0:
137137
break
138138
log(
139-
f"{buff.tell()//2**20}Mo/{length//2**20}Mo",
139+
f"{buff.tell() // 2**20}Mo/{length // 2**20}Mo",
140140
flush=True,
141141
end="\r",
142142
)

β€Žscripts/python_distrib.pyβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ def fetch_prebuild(
8787
with open(tmp_archive_path, "bw") as outfd:
8888
length = int(rep.headers.get("Content-Length"))
8989
# Poor's man progress bar
90-
print(f"0Mo/{length//2**20}Mo", flush=True, end="\r")
90+
print(f"0Mo/{length // 2**20}Mo", flush=True, end="\r")
9191
while True:
9292
if outfd.write(rep.read(2**20)) == 0:
9393
break
94-
print(f"{outfd.tell()//2**20}Mo/{length//2**20}Mo", flush=True, end="\r")
94+
print(f"{outfd.tell() // 2**20}Mo/{length // 2**20}Mo", flush=True, end="\r")
9595

9696
shutil.move(tmp_archive_path, archive_path)
9797

0 commit comments

Comments
Β (0)