[issue25160] Stop using deprecated imp module; imp should now emit a real DeprecationWarning

Jelle Zijlstra report at bugs.python.org
Thu Jun 2 14:59:04 EDT 2016


Jelle Zijlstra added the comment:

Current status:

- 2to3 replaces reload() calls with imp.reload
- Lib/modulefinder.py imports imp and uses it 10 or so times, mostly for constants
- Lib/xml/sax/__init__.py uses imp on Jython only
- Python/makeopcodetargets.py falls back to imp if importlib is not available. 
- Tools/importbench/importbench.py uses imp a number of times.

I'll work on replacing some of these.

----------
nosy: +Jelle Zijlstra

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25160>
_______________________________________


More information about the Python-bugs-list mailing list