]> granicus.if.org Git - python/commit
[3.6] bpo-30645: don't append to an inner loop path in imp.load_package() (GH-2268...
authorBrett Cannon <brettcannon@users.noreply.github.com>
Fri, 23 Jun 2017 18:23:36 +0000 (11:23 -0700)
committerGitHub <noreply@github.com>
Fri, 23 Jun 2017 18:23:36 +0000 (11:23 -0700)
commit9db3ae045dd462a2da2e016c44231de1befd1f87
tree389926d4da9f2610d841f03ec300da6279c8a4ea
parente7135751b8e48af80665e40ac8fa6d0073e5affe
[3.6] bpo-30645: don't append to an inner loop path in imp.load_package() (GH-2268) (#2364)

Bug didn't manifest itself when importing a module with source as .py files are always the first on the search path. The issue only showed up in bytecode-only packages where the calculated file path would be ``__init__.py/__init__.pyc``.

Patch by Alexandru Ardelean.

(cherry picked from commit c38e32a10061a7c6d54e7e53ffabf7af7998f045)
Lib/imp.py
Misc/ACKS
Misc/NEWS