mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
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:
+2
-2
@@ -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
@@ -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 = [], []
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user