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)