Commit fae7a58c authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

remove f-strings

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