From 5d0faf96176d9f24b310df5d6c245f08690fda5a Mon Sep 17 00:00:00 2001 From: finswimmer Date: Fri, 4 Jun 2021 10:20:47 +0200 Subject: [PATCH] replace f-string in get-poetry by `.format()` for python2 compatibility --- get-poetry.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/get-poetry.py b/get-poetry.py index cde467fbf0a..dc3c235eeaa 100644 --- a/get-poetry.py +++ b/get-poetry.py @@ -458,11 +458,11 @@ def _is_supported(x): 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