diff --git a/pipenv/cli.py b/pipenv/cli.py index 184b3f98..2896be33 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -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. diff --git a/pipenv/utils.py b/pipenv/utils.py index 995c5217..ced5030d 100644 --- a/pipenv/utils.py +++ b/pipenv/utils.py @@ -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 = [], [] diff --git a/tests/test_pipenv.py b/tests/test_pipenv.py index 82f98ecd..237b3e29 100644 --- a/tests/test_pipenv.py +++ b/tests/test_pipenv.py @@ -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