Message265051
import_fresh_module() emits the deprecation warning twice.
>>> from test.support import import_fresh_module
>>> import_fresh_module('idlelib.idlever')
/home/serhiy/py/cpython-debug/Lib/test/support/__init__.py:166: DeprecationWarning:
The separate Idle version was eliminated years ago;
idlelib.idlever is no longer used by Idle
and will be removed in 3.6 or later. Use
from sys import version
IDLE_VERSION = version[:version.index(' ')]
__import__(name)
/home/serhiy/py/cpython-debug/Lib/importlib/__init__.py:126: DeprecationWarning:
The separate Idle version was eliminated years ago;
idlelib.idlever is no longer used by Idle
and will be removed in 3.6 or later. Use
from sys import version
IDLE_VERSION = version[:version.index(' ')]
return _bootstrap._gcd_import(name[level:], package, level)
<module 'idlelib.idlever' from '/home/serhiy/py/cpython-debug/Lib/idlelib/idlever.py'> |
|
Date |
User |
Action |
Args |
2016-05-07 08:21:25 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, terry.reedy, kbk, roger.serwy |
2016-05-07 08:21:25 | serhiy.storchaka | set | messageid: <1462609285.33.0.857206458202.issue25747@psf.upfronthosting.co.za> |
2016-05-07 08:21:25 | serhiy.storchaka | link | issue25747 messages |
2016-05-07 08:21:24 | serhiy.storchaka | create | |
|