diff --git a/docs/using.rst b/docs/using.rst index ec7f0fad..548fa58e 100644 --- a/docs/using.rst +++ b/docs/using.rst @@ -175,7 +175,9 @@ To port to the ``files()`` API, refer to the `_legacy module `_ to see simple wrappers that enable drop-in replacement based on the preferred API, and either copy those or adapt the usage to utilize the -``files`` and ``Traversable`` interfaces directly. +``files`` and +`Traversable `_ +interfaces directly. Extending diff --git a/importlib_resources/_legacy.py b/importlib_resources/_legacy.py index 7526d512..477f89e4 100644 --- a/importlib_resources/_legacy.py +++ b/importlib_resources/_legacy.py @@ -16,7 +16,9 @@ def deprecated(func): @functools.wraps(func) def wrapper(*args, **kwargs): warnings.warn( - f"{func.__name__} is deprecated. Use files() instead.", + 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, stacklevel=2, )