From 6ad1d1e08a0560b5f649593b3c995347f92be990 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filipe=20La=C3=ADns?= Date: Wed, 20 Oct 2021 20:09:05 +0100 Subject: [PATCH] _legacy: mark legacy API as PendingDeprecationWarning --- importlib_resources/_legacy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/importlib_resources/_legacy.py b/importlib_resources/_legacy.py index 477f89e..1f0887e 100644 --- a/importlib_resources/_legacy.py +++ b/importlib_resources/_legacy.py @@ -19,7 +19,7 @@ def wrapper(*args, **kwargs): f"{func.__name__} is deprecated. Use files() instead. " "Refer to https://importlib-resources.readthedocs.io" "/en/latest/using.html#migrating-from-legacy for migration advice.", - DeprecationWarning, + PendingDeprecationWarning, stacklevel=2, ) return func(*args, **kwargs)