diff --git a/pipenv/core.py b/pipenv/core.py index 7837db45..e722f869 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -1950,7 +1950,7 @@ def do_install( requirements_directory = vistir.path.create_tracked_tempdir( suffix="-requirements", prefix="pipenv-" ) - warnings.filterwarnings("default", category=vistir.compat.ResourceWarning) + warnings.filterwarnings("default", category=ResourceWarning) if selective_upgrade: keep_outdated = True packages = packages if packages else [] diff --git a/pipenv/utils/shell.py b/pipenv/utils/shell.py index 40ca5365..0b01d35b 100644 --- a/pipenv/utils/shell.py +++ b/pipenv/utils/shell.py @@ -12,7 +12,6 @@ from functools import lru_cache from pathlib import Path from pipenv import environments -from pipenv.vendor.vistir.compat import ResourceWarning from .constants import SCHEME_LIST from .processes import subprocess_run