Remove unused imports

This commit is contained in:
Pradyun Gedam 2018-05-30 12:49:05 +05:30
parent 51327e9567
commit 54722aa7ec
No known key found for this signature in database
GPG Key ID: DA17C4B29CB32E4B
10 changed files with 2 additions and 11 deletions

View File

@ -4,7 +4,6 @@ from pip._internal.basecommand import Command
from pip._internal.operations.check import (
check_package_set, create_package_set_from_installed,
)
from pip._internal.utils.misc import get_installed_distributions
logger = logging.getLogger(__name__)

View File

@ -30,7 +30,6 @@ from pip._vendor.six.moves.urllib.parse import unquote as urllib_unquote
from pip._vendor.urllib3.util import IS_PYOPENSSL
import pip
from pip._internal.compat import WINDOWS
from pip._internal.exceptions import HashMismatch, InstallationError
from pip._internal.locations import write_delete_marker_file
from pip._internal.models.index import PyPI

View File

@ -8,7 +8,7 @@ import site
import sys
import sysconfig
from distutils import sysconfig as distutils_sysconfig
from distutils.command.install import SCHEME_KEYS, install # type: ignore
from distutils.command.install import SCHEME_KEYS
from pip._internal.compat import WINDOWS, expanduser
from pip._internal.utils import appdirs

View File

@ -28,7 +28,7 @@ from pip._internal.compat import native_str
from pip._internal.download import (
is_archive_file, is_url, path_to_url, url_to_path,
)
from pip._internal.exceptions import InstallationError, UninstallationError
from pip._internal.exceptions import InstallationError
from pip._internal.locations import (
PIP_DELETE_MARKER_FILENAME, running_under_virtualenv,
)

View File

@ -1,7 +1,6 @@
"""Handles all VCS (version control) support"""
from __future__ import absolute_import
import copy
import errno
import logging
import os

View File

@ -5,7 +5,6 @@ from __future__ import absolute_import
import collections
import compileall
import copy
import csv
import hashlib
import logging

View File

@ -1,4 +1,3 @@
import os
import textwrap
import pytest

View File

@ -1,4 +1,3 @@
import pytest
from tests.lib import assert_all_changes

View File

@ -1,7 +1,6 @@
import distutils
import glob
import os
import sys
import pytest

View File

@ -2,9 +2,7 @@
Test specific for the --no-color option
"""
import os
import platform
import subprocess
import sys
import pytest