mirror of https://github.com/pypa/pip
use six instead of try except
This commit is contained in:
parent
6a0da3da24
commit
9b03434478
|
@ -5,6 +5,7 @@ import logging
|
|||
import warnings
|
||||
|
||||
from pip._vendor import six
|
||||
from pip._vendor.six.moves import zip_longest
|
||||
|
||||
from pip.basecommand import Command
|
||||
from pip.cmdoptions import index_group, make_option_group
|
||||
|
@ -14,12 +15,6 @@ from pip.utils import dist_is_editable, get_installed_distributions
|
|||
from pip.utils.deprecation import RemovedInPip11Warning
|
||||
from pip.utils.packaging import get_installer
|
||||
|
||||
try:
|
||||
from itertools import zip_longest
|
||||
except ImportError:
|
||||
from itertools import izip_longest as zip_longest # type: ignore
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue