Remove unused variables and imports

pipenv/cli.py:24:1: F401 '.utils.recase_file' imported but unused
pipenv/cli.py:466:5: F841 local variable 'p' is assigned to but never used
pipenv/utils.py:13:5: F401 'html.parser.HTMLParser' imported but unused
pipenv/utils.py:246:25: F841 local variable 'e' is assigned to but never used
tests/test_pipenv.py:9:1: F401 'pipenv.cli.which_pip' imported but unused
This commit is contained in:
Ed Morley
2017-05-25 20:22:00 +01:00
parent 8a0ac58250
commit 0d7694819b
3 changed files with 4 additions and 9 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ from requests.packages.urllib3.exceptions import InsecureRequestWarning
from .project import Project
from .utils import (convert_deps_from_pip, convert_deps_to_pip, is_required_version,
proper_case, pep423_name, split_vcs, recase_file)
proper_case, pep423_name, split_vcs)
from .__version__ import __version__
from . import pep508checker, progress
from .environments import PIPENV_COLORBLIND, PIPENV_NOSPIN, PIPENV_SHELL_COMPAT, PIPENV_VENV_IN_PROJECT
@@ -463,7 +463,7 @@ def do_lock(no_hashes=True):
names_map = do_download_dependencies(dev=True, only=True, bare=True)
# Load the Pipfile and generate a lockfile.
p = project._pipfile
project._pipfile
lockfile = project._lockfile
# Pip freeze development dependencies.
+1 -6
View File
@@ -7,11 +7,6 @@ import requests
import requirements
import six
try:
from HTMLParser import HTMLParser
except ImportError:
from html.parser import HTMLParser
# List of version control systems we support.
VCS_LIST = ('git', 'svn', 'hg', 'bzr')
@@ -243,7 +238,7 @@ def walk_up(bottom):
# get files in current dir
try:
names = os.listdir(bottom)
except Exception as e:
except Exception:
return
dirs, nondirs = [], []
+1 -1
View File
@@ -7,7 +7,7 @@ import delegator
import toml
from pipenv.cli import (activate_virtualenv, ensure_proper_casing,
parse_download_fname, parse_install_output, pip_install, pip_download, which_pip)
parse_download_fname, parse_install_output, pip_install, pip_download)
from pipenv.project import Project