[issue21446] Update reload fixer to use importlib instead of imp

Jelle Zijlstra report at bugs.python.org
Thu Jun 2 17:07:40 EDT 2016


Jelle Zijlstra added the comment:

I couldn't find references in the docs to clarify what version of 3.x 2to3 targets, but it seems reasonable to me that it produces code targeted to the version of CPython it was bundled with. imp is deprecated and presumably will be removed later in 3.x, so it's better not to migrate people's Python 2 code to use it.

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

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


More information about the Python-bugs-list mailing list