mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-06 03:25:21 +00:00
Remove f string to work all versions
This commit is contained in:
parent
b02ce25247
commit
0ddf23d6a9
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user