From 18fd161c448660499c110d5955a1d140902ec225 Mon Sep 17 00:00:00 2001 From: Devesh Kumar Singh Date: Sat, 18 Apr 2020 01:03:19 +0530 Subject: [PATCH] Fix pip config docstring to render correctly in docs --- news/8072.doc | 1 + src/pip/_internal/commands/configuration.py | 13 +++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 news/8072.doc diff --git a/news/8072.doc b/news/8072.doc new file mode 100644 index 000000000..71eb46f29 --- /dev/null +++ b/news/8072.doc @@ -0,0 +1 @@ +Fix pip config docstring so that the subcommands render correctly in the docs diff --git a/src/pip/_internal/commands/configuration.py b/src/pip/_internal/commands/configuration.py index b801be6a0..354a852b2 100644 --- a/src/pip/_internal/commands/configuration.py +++ b/src/pip/_internal/commands/configuration.py @@ -19,15 +19,16 @@ logger = logging.getLogger(__name__) class ConfigurationCommand(Command): - """Manage local and global configuration. + """ + Manage local and global configuration. Subcommands: - list: List the active configuration (or from the file specified) - edit: Edit the configuration file in an editor - get: Get the value associated with name - set: Set the name=value - unset: Unset the value associated with name + - list: List the active configuration (or from the file specified) + - edit: Edit the configuration file in an editor + - get: Get the value associated with name + - set: Set the name=value + - unset: Unset the value associated with name If none of --user, --global and --site are passed, a virtual environment configuration file is used if one is active and the file