Skip to content

Commit

Permalink
Update import path for PackageFinder/FormatControl
Browse files Browse the repository at this point in the history
PackageFinder moved to pip._internal.index.package_finder
FormatControl moved to pip._internal.models.format_control
See: pypa/pip#7144
  • Loading branch information
atugushev committed Oct 20, 2019
1 parent 023d7ca commit 6cc924a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions piptools/_compat/pip_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ def do_import(module_path, subimport=None, old_path=None):
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("utils.urls", "url_to_path", old_path="download")
PackageFinder = do_import("index", "PackageFinder")
FormatControl = do_import("index", "FormatControl")
PackageFinder = do_import("index.package_finder", "PackageFinder", old_path="index")
FormatControl = do_import("models.format_control", "FormatControl", old_path="index")
InstallCommand = do_import("commands.install", "InstallCommand")
Wheel = do_import("wheel", "Wheel")
cmdoptions = do_import("cli.cmdoptions", old_path="cmdoptions")
Expand Down

0 comments on commit 6cc924a

Please sign in to comment.