From a1062f8f5aa5cfbc3f34e7a1385e606cbe1e7969 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Tue, 3 Jul 2018 22:32:56 -0400 Subject: [PATCH] cleanup --- pipenv/core.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pipenv/core.py b/pipenv/core.py index 20ec99d5..783677f0 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -125,7 +125,6 @@ project = Project(which=which) def do_clear(): click.echo(crayons.white("Clearing caches…", bold=True)) import pip._internal.locations - import piptools try: shutil.rmtree(PIPENV_CACHE_DIR) @@ -953,7 +952,7 @@ def parse_download_fname(fname, name): if fname.endswith(".tar"): fname, _ = os.path.splitext(fname) # Substring out package name (plus dash) from file name to get version. - version = fname[len(name) + 1 :] + version = fname[len(name) + 1:] # Ignore implicit post releases in version number. if "-" in version and version.split("-")[1].isdigit(): version = version.split("-")[0]