From e89710f04948fc4ba9e242b4675ebfcd0e57c7f5 Mon Sep 17 00:00:00 2001 From: Oz N Tiram Date: Thu, 12 May 2022 19:18:43 +0200 Subject: [PATCH] Remove vistir.compat.ResourceWarning Built-in since Python3. --- pipenv/core.py | 2 +- pipenv/utils/shell.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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