Skip to content

Commit 2dbda58

Browse files
committed
Add permission check before configuration
1 parent 920bcd0 commit 2dbda58

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/pip/_internal/configuration.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,8 @@ def save(self) -> None:
216216
parser.write(f)
217217
else:
218218
raise ConfigurationError(
219-
"Configuation file not writeable".format(
220-
": ".join(fname)
219+
"Configuation file not writeable {}".format(': '.join(fname))
221220
)
222-
)
223221

224222
#
225223
# Private routines

0 commit comments

Comments
 (0)