Skip to content

Commit 6507734

Browse files
authored
Fix string formatting
1 parent 26953e6 commit 6507734

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/pip/_internal/configuration.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,8 @@ def save(self) -> None:
216216
parser.write(f)
217217
except IOError as error:
218218
raise ConfigurationError(
219-
"An error occurred while writing to the configuration file: {0}\n \
220-
Error message: {1}".format(
221-
fname, error
222-
)
219+
f"An error occurred while writing to the configuration file "
220+
f"{fname}: {error}"
223221
)
224222

225223
#

0 commit comments

Comments
 (0)