ยปCore Development>Code coverage>Lib/ensurepip/_uninstall.py

Python code coverage for Lib/ensurepip/_uninstall.py

#countcontent
1n/a"""Basic pip uninstallation support, helper for the Windows uninstaller"""
2n/a
3n/aimport argparse
4n/aimport ensurepip
5n/a
6n/a
7n/adef _main(argv=None):
8n/a parser = argparse.ArgumentParser(prog="python -m ensurepip._uninstall")
9n/a parser.add_argument(
10n/a "--version",
11n/a action="version",
12n/a version="pip {}".format(ensurepip.version()),
13n/a help="Show the version of pip this will attempt to uninstall.",
14n/a )
15n/a parser.add_argument(
16n/a "-v", "--verbose",
17n/a action="count",
18n/a default=0,
19n/a dest="verbosity",
20n/a help=("Give more output. Option is additive, and can be used up to 3 "
21n/a "times."),
22n/a )
23n/a
24n/a args = parser.parse_args(argv)
25n/a
26n/a ensurepip._uninstall_helper(verbosity=args.verbosity)
27n/a
28n/a
29n/aif __name__ == "__main__":
30n/a _main()