Skip to content

Commit

Permalink
Merge pull request #9687 from afolksetapart/9686-default-uninstall
Browse files Browse the repository at this point in the history
Make yes the default choice in `pip uninstall`'s prompt
  • Loading branch information
pradyunsg committed Jun 30, 2021
2 parents 1b75812 + 197392c commit bef589d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/9686.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Make "yes" the default choice in ``pip uninstall``'s prompt.
2 changes: 1 addition & 1 deletion src/pip/_internal/req/req_uninstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ def _display(msg, paths):
if verbose:
_display('Will actually move:', compress_for_rename(self.paths))

return ask('Proceed (y/n)? ', ('y', 'n')) == 'y'
return ask('Proceed (Y/n)? ', ('y', 'n', '')) != 'n'

def rollback(self):
# type: () -> None
Expand Down

0 comments on commit bef589d

Please sign in to comment.