Skip to content

Commit bef589d

Browse files
authored
Merge pull request #9687 from afolksetapart/9686-default-uninstall
Make yes the default choice in `pip uninstall`'s prompt
2 parents 1b75812 + 197392c commit bef589d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

news/9686.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Make "yes" the default choice in ``pip uninstall``'s prompt.

src/pip/_internal/req/req_uninstall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ def _display(msg, paths):
438438
if verbose:
439439
_display('Will actually move:', compress_for_rename(self.paths))
440440

441-
return ask('Proceed (y/n)? ', ('y', 'n')) == 'y'
441+
return ask('Proceed (Y/n)? ', ('y', 'n', '')) != 'n'
442442

443443
def rollback(self):
444444
# type: () -> None

0 commit comments

Comments
 (0)