Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
60f08c83
Commit
60f08c83
authored
Nov 30, 2013
by
Nick Coghlan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #19726: actually running 'hg add' helps...
parent
fdf3a620
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
Lib/ensurepip/_uninstall.py
Lib/ensurepip/_uninstall.py
+30
-0
No files found.
Lib/ensurepip/_uninstall.py
0 → 100644
View file @
60f08c83
"""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
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment