diff --git a/src/pip/_internal/commands/debug.py b/src/pip/_internal/commands/debug.py index 7e5271c9886..9c1f7cd6e1f 100644 --- a/src/pip/_internal/commands/debug.py +++ b/src/pip/_internal/commands/debug.py @@ -35,7 +35,7 @@ def show_sys_implementation() -> None: def create_vendor_txt_map() -> Dict[str, str]: - with importlib.resources.open_text("pip._vendor", "vendor.txt") as f: + with importlib.resources.files("pip._vendor").joinpath("vendor.txt").open("r") as f: # Purge non version specifying lines. # Also, remove any space prefix or suffixes (including comments). lines = [