Skip to content
Snippets Groups Projects
Commit fae7a58c authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

remove f-strings

parent 502b6db2
No related branches found
No related tags found
No related merge requests found
Pipeline #45540 canceled
......@@ -3,8 +3,8 @@
# This file has been generated by conda-smithy in order to build the recipe
# locally.
#
import os
import glob
import os
import subprocess
from argparse import ArgumentParser
......@@ -27,7 +27,7 @@ def verify_config(ns):
valid_configs = {
os.path.basename(f)[:-5] for f in glob.glob(".ci_support/*.yaml")
}
print(f"valid configs are {valid_configs}")
print("valid configs are {valid_configs}".format(valid_configs=valid_configs))
if ns.config in valid_configs:
print("Using " + ns.config + " configuration")
return
......@@ -38,17 +38,17 @@ def verify_config(ns):
print("config not selected, please choose from the following:\n")
selections = list(enumerate(sorted(valid_configs), 1))
for i, c in selections:
print(f"{i}. {c}")
print("{i}. {c}".format(i=i, c=c))
s = input("\n> ")
idx = int(s) - 1
ns.config = selections[idx][1]
print(f"selected {ns.config}")
print("selected {config}".format(config=ns.config))
else:
raise ValueError("config " + ns.config + " is not valid")
# Remove the following, as implemented
if not ns.config.startswith("linux"):
raise ValueError(
f"only Linux configs currently supported, got {ns.config}"
"only Linux configs currently supported, got {config}".format(config=ns.config)
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment