1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Update src/pip/_internal/req/req_uninstall.py

Co-authored-by: Pradyun Gedam <3275593+pradyunsg@users.noreply.github.com>
This commit is contained in:
Joe Michelini 2021-03-06 12:36:46 -05:00 committed by Joe Michelini
parent c7c4ade601
commit 197392ca3d

View file

@ -438,10 +438,7 @@ class UninstallPathSet:
if verbose:
_display('Will actually move:', compress_for_rename(self.paths))
if ask('Proceed (Y/n)? ', ('y', 'n', '')) in ('y', ''):
return True
else:
return False
return ask('Proceed (Y/n)? ', ('y', 'n', '')) != 'n'
def rollback(self):
# type: () -> None