Skip to content

Commit 481db13

Browse files
fix: Fix Python 3.4.x compatibilty with bootstrap (#2709) (#2714)
Fixes some f-strings, trailing commas, and out-of-order argument unpacking in the bootstrap template to restore compatibility with Python 3.4.x.
1 parent 1f8659c commit 481db13

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

python/private/python_bootstrap_template.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,19 +95,17 @@ def print_verbose(*args, mapping=None, values=None):
9595
for key, value in sorted((mapping or {}).items()):
9696
print(
9797
"bootstrap:",
98-
*args,
99-
f"{key}={value!r}",
98+
*(list(args) + ["{}={}".format(key, repr(value))]),
10099
file=sys.stderr,
101-
flush=True,
100+
flush=True
102101
)
103102
elif values is not None:
104103
for i, v in enumerate(values):
105104
print(
106105
"bootstrap:",
107-
*args,
108-
f"[{i}] {v!r}",
106+
*(list(args) + ["[{}] {}".format(i, repr(v))]),
109107
file=sys.stderr,
110-
flush=True,
108+
flush=True
111109
)
112110
else:
113111
print("bootstrap:", *args, file=sys.stderr, flush=True)

0 commit comments

Comments
 (0)