Remove f string to work all versions

This commit is contained in:
kristiewirth 2020-09-28 14:22:32 -06:00
parent b02ce25247
commit 0ddf23d6a9

View File

@ -182,7 +182,7 @@ def output_requirements(imports):
def add_requirements_poetry(imports):
packages = [item["name"] for item in imports]
# Run all commands even if one fails
poetry_command = "".join([f"poetry add {pkg}; " for pkg in packages])
poetry_command = "".join(["poetry add {pkg}; ".format(pkg) for pkg in packages])
# Remove extra lingering ; from end of command
poetry_command_cleaned = poetry_command[:-2]
logging.info("Running '%s'", poetry_command_cleaned)