[issue26131] Raise ImportWarning when loader.load_module() is used

Brett Cannon report at bugs.python.org
Thu Oct 22 20:38:05 EDT 2020


Brett Cannon <brett at python.org> added the comment:

A PR is now up. I ended up deprecating the load_module() methods in importlib itself and then raise ImportWarning in the import system itself when falling back to load_module().

----------
stage: patch review -> test needed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue26131>
_______________________________________


More information about the Python-bugs-list mailing list