[issue19713] Deprecate various things in importlib thanks to PEP 451
Arfrever Frehtes Taifersar Arahesis
report at bugs.python.org
Tue Jan 7 18:27:42 CET 2014
Arfrever Frehtes Taifersar Arahesis added the comment:
> New changeset 37caaf21f827 by Eric Snow in branch 'default':
> Issue 19713: Add PEP 451-related deprecations.
> http://hg.python.org/cpython/rev/37caaf21f827
> ...
> - spec.loader.load_module(spec.name)
> + try:
> + _warnings
> + except NameError:
> + # We must be importing builtins in setup().
> + spec.loader.load_module(spec.name)
> + else:
> + spec.loader.load_module(spec.name)
Is this correct?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19713>
_______________________________________
More information about the Python-bugs-list
mailing list