Import cmdoptions instead of it's internal functions

This commit is contained in:
Pradyun Gedam 2018-07-23 13:00:10 +05:30
parent 8d45e0e647
commit 772435d620
No known key found for this signature in database
GPG Key ID: DA17C4B29CB32E4B
1 changed files with 4 additions and 2 deletions

View File

@ -6,8 +6,8 @@ import logging
from pip._vendor import six
from pip._vendor.six.moves import zip_longest
from pip._internal import cmdoptions
from pip._internal.cli.basecommand import Command
from pip._internal.cmdoptions import index_group, make_option_group
from pip._internal.exceptions import CommandError
from pip._internal.index import PackageFinder
from pip._internal.utils.misc import (
@ -102,7 +102,9 @@ class ListCommand(Command):
help='Include editable package from output.',
default=True,
)
index_opts = make_option_group(index_group, self.parser)
index_opts = cmdoptions.make_option_group(
cmdoptions.index_group, self.parser
)
self.parser.insert_option_group(0, index_opts)
self.parser.insert_option_group(0, cmd_opts)