Closed
Description
Bug report
Bug description:
>>> import importlib.abc
>>> importlib.abc.TraversableResources
Traceback (most recent call last):
File "<python-input-3>", line 1, in <module>
importlib.abc.TraversableResources
File "/usr/lib64/python3.13/importlib/abc.py", line 34, in __getattr__
warnings._deprecated(f"{__name__}.{name}", remove=(3, 14))
^^^^^^^^
NameError: name 'warnings' is not defined. Did you mean: 'Warning'? Or did you forget to import 'warnings'?
This is a result of #120429
Thew change on the main branch correctly removed unused import warnings
, but ti got backported to 3.13 where the import is used.
CPython versions tested on:
3.13
Operating systems tested on:
Linux