bpo-17393: do not convert import of non-package by romuald · Pull Request #16826 · python/cpython
In lib2to3, when a patched code is importing a module that has the same name as a local directory, check that it contains an __init__.py file before converting it to a local import Quick example: ``` fixtures/__init__.py fixtures/json/things.json ``` Previously `import json` was converted to `from . import json`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters