use six instead of try except

This commit is contained in:
Pradyun S. Gedam 2017-07-17 23:25:58 +05:30
parent 6a0da3da24
commit 9b03434478
1 changed files with 1 additions and 6 deletions

View File

@ -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__)