mirror of https://github.com/pypa/pip
Import cmdoptions instead of it's internal functions
This commit is contained in:
parent
8d45e0e647
commit
772435d620
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue