From aa2015fb375dac7fb7046f8b652a4a37fa18ed1c Mon Sep 17 00:00:00 2001 From: Albert Tugushev Date: Wed, 2 Oct 2019 00:03:32 +0300 Subject: [PATCH] Fix url_to_path() import Function url_to_path() moved to `pip._internal.utils.urls`. See https://github.com/pypa/pip/pull/7089 --- piptools/_compat/pip_compat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piptools/_compat/pip_compat.py b/piptools/_compat/pip_compat.py index 17cbd492c..f5d8d1be1 100644 --- a/piptools/_compat/pip_compat.py +++ b/piptools/_compat/pip_compat.py @@ -35,7 +35,7 @@ def do_import(module_path, subimport=None, old_path=None): user_cache_dir = do_import("utils.appdirs", "user_cache_dir") FAVORITE_HASH = do_import("utils.hashes", "FAVORITE_HASH") path_to_url = do_import("utils.urls", "path_to_url", old_path="download") -url_to_path = do_import("download", "url_to_path") +url_to_path = do_import("utils.urls", "url_to_path", old_path="download") PackageFinder = do_import("index", "PackageFinder") FormatControl = do_import("index", "FormatControl") InstallCommand = do_import("commands.install", "InstallCommand")