Commit 6bd4f1a6 by Sébastien Eustace Committed by GitHub

Merge pull request #4138 from finswimmer/issue/4131-get-poetry-f-string

replace f-string in get-poetry by `.format()` for python2 compatibility
parents 642bae6f 5d0faf96
......@@ -458,11 +458,11 @@ class Installer:
print(
colorize(
"error",
f"Version {version} does not support this installation method. Please specify a version prior to "
f"1.2.0a1 explicitly using the '--version' option.\n"
"Version {version} does not support this installation method. Please specify a version prior to "
"1.2.0a1 explicitly using the '--version' option.\n"
"Please see "
"https://python-poetry.org/blog/announcing-poetry-1-2-0a1.html#deprecation-of-the-get-poetry-py-script "
"for more information.",
"for more information.".format(version=version),
)
)
return None, None
......
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