[issue26367] importlib.__import__ does not fail for invalid relative import

Manuel Jacob report at bugs.python.org
Thu Feb 18 09:44:03 EST 2016


Manuel Jacob added the comment:

(For some reason, I forgot to submit the previous comment).

The attached patches fix the issue (one for the 3.5 branch, one for the default branch) by bringing importlib.__import__ closer to the builtin __import__.

The extra code in the default / 3.6 branch is because of the changes from issue18018.

----------

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


More information about the Python-bugs-list mailing list