cpython: Issue #19726: actually running 'hg add' helps...

http://hg.python.org/cpython/rev/04088790c077 changeset: 87650:04088790c077 user: Nick Coghlan <ncoghlan@gmail.com> date: Sat Nov 30 17:45:09 2013 +1000 summary: Issue #19726: actually running 'hg add' helps... files: Lib/ensurepip/_uninstall.py | 30 +++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/Lib/ensurepip/_uninstall.py b/Lib/ensurepip/_uninstall.py new file mode 100644 --- /dev/null +++ b/Lib/ensurepip/_uninstall.py @@ -0,0 +1,30 @@ +"""Basic pip uninstallation support, helper for the Windows uninstaller""" + +import argparse +import ensurepip + + +def main(): + parser = argparse.ArgumentParser(prog="python -m ensurepip._uninstall") + parser.add_argument( + "--version", + action="version", + version="pip {}".format(ensurepip.version()), + help="Show the version of pip this will attempt to uninstall.", + ) + parser.add_argument( + "-v", "--verbose", + action="count", + default=0, + dest="verbosity", + help=("Give more output. Option is additive, and can be used up to 3 " + "times."), + ) + + args = parser.parse_args() + + ensurepip._uninstall(verbosity=args.verbosity) + + +if __name__ == "__main__": + main() -- Repository URL: http://hg.python.org/cpython
participants (1)
-
nick.coghlan