Skip to content

Commit 7b6a1ed

Browse files
committed
Convert str.format to f-string
1 parent 34a035a commit 7b6a1ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pip/_internal/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def _construct_parser(self, fname: str) -> RawConfigParser:
272272
except UnicodeDecodeError:
273273
# See https://github.com/pypa/pip/issues/4963
274274
raise ConfigurationFileCouldNotBeLoaded(
275-
reason="contains invalid {} characters".format(locale_encoding),
275+
reason=f"contains invalid {locale_encoding} characters",
276276
fname=fname,
277277
)
278278
except configparser.Error as error:

0 commit comments

Comments
 (0)