[Python-checkins] [2.7] Improve ensurepip's --help (GH-4686) (GH-7240)

Petr Viktorin webhook-mailer at python.org
Wed May 30 06:36:20 EDT 2018


https://github.com/python/cpython/commit/f3d269a366d6c6cf07561d3495e74be5a98de27c
commit: f3d269a366d6c6cf07561d3495e74be5a98de27c
branch: 2.7
author: Petr Viktorin <encukou at gmail.com>
committer: GitHub <noreply at github.com>
date: 2018-05-30T12:36:17+02:00
summary:

[2.7] Improve ensurepip's --help (GH-4686) (GH-7240)

* Add a space to ensurepip's --altinstall option
* Add periods to the arguments of ensurepip that didn't have it

This makes --help for all optional arguments consistent and also makes it
consistent with pip --help..
(cherry picked from commit e9537ad6a128924dd610bea2268065500c174181)

Co-authored-by: Wieland Hoffmann <mineo at users.noreply.github.com>

files:
M Lib/ensurepip/__init__.py

diff --git a/Lib/ensurepip/__init__.py b/Lib/ensurepip/__init__.py
index 49d74cda436b..3c679e596874 100644
--- a/Lib/ensurepip/__init__.py
+++ b/Lib/ensurepip/__init__.py
@@ -190,8 +190,8 @@ def _main(argv=None):
         "--altinstall",
         action="store_true",
         default=False,
-        help=("Make an alternate install, installing only the X.Y versioned"
-              "scripts (Default: pipX, pipX.Y, easy_install-X.Y)"),
+        help=("Make an alternate install, installing only the X.Y versioned "
+              "scripts (Default: pipX, pipX.Y, easy_install-X.Y)."),
     )
     parser.add_argument(
         "--default-pip",



More information about the Python-checkins mailing list