mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Convert str.format to f-string
This commit is contained in:
parent
34a035ab11
commit
7b6a1eddb7
|
@ -272,7 +272,7 @@ class Configuration:
|
|||
except UnicodeDecodeError:
|
||||
# See https://github.com/pypa/pip/issues/4963
|
||||
raise ConfigurationFileCouldNotBeLoaded(
|
||||
reason="contains invalid {} characters".format(locale_encoding),
|
||||
reason=f"contains invalid {locale_encoding} characters",
|
||||
fname=fname,
|
||||
)
|
||||
except configparser.Error as error:
|
||||
|
|
Loading…
Reference in a new issue