File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,9 @@ To port to the ``files()`` API, refer to the
175
175
`_legacy module <https://github.com/python/importlib_resources/blob/66ea2dc7eb12b1be2322b7ad002cefb12d364dff/importlib_resources/_legacy.py >`_
176
176
to see simple wrappers that enable drop-in replacement based on the
177
177
preferred API, and either copy those or adapt the usage to utilize the
178
- ``files `` and ``Traversable `` interfaces directly.
178
+ ``files `` and
179
+ `Traversable <https://github.com/python/importlib_resources/blob/b665a3ea907d93b1b6457217f34e1bfc06f51fe6/importlib_resources/abc.py#L49-L114 >`_
180
+ interfaces directly.
179
181
180
182
181
183
Extending
Original file line number Diff line number Diff line change @@ -16,7 +16,9 @@ def deprecated(func):
16
16
@functools .wraps (func )
17
17
def wrapper (* args , ** kwargs ):
18
18
warnings .warn (
19
- f"{ func .__name__ } is deprecated. Use files() instead." ,
19
+ f"{ func .__name__ } is deprecated. Use files() instead. "
20
+ "Refer to https://importlib-resources.readthedocs.io"
21
+ "/en/latest/using.html#migrating-from-legacy for migration advice." ,
20
22
DeprecationWarning ,
21
23
stacklevel = 2 ,
22
24
)
You can’t perform that action at this time.
0 commit comments