New submission from STINNER Victor:

The imp module is deprecated since Python 3.4. In Python 3.4, imp uses a 
PendingDeprecationWarning, and Python 3.5... hum, still a 
PendingDeprecationWarning. It was not supposed to become a real 
DeprecationWarning?

Anyway, the imp module is still used in some places of the Python stdlib:

Lib/modulefinder.py:14:    import imp
Python/makeopcodetargets.py:9:import imp
Tools/i18n/pygettext.py:159:import imp
Tools/importbench/importbench.py:10:import imp

modulefinder explicitly ignore the warning :-(

with warnings.catch_warnings():
    warnings.simplefilter('ignore', PendingDeprecationWarning)
    import imp

----------
messages: 250946
nosy: brett.cannon, haypo
priority: normal
severity: normal
status: open
title: Stop using deprecated imp module; imp should now emit a real 
DeprecationWarning
versions: Python 3.5, Python 3.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25160>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to