]> granicus.if.org Git - python/commit
[3.5] 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:39:53 +0000 (11:39 -0700)
committerGitHub <noreply@github.com>
Fri, 23 Jun 2017 18:39:53 +0000 (11:39 -0700)
commit599ff020b308113f3709fd4e623d9f0d08511706
tree8b51b32b11b874c80d979352b6a4e0417eeec69c
parenta7c0264735f46afab13771be4218d8eab0d7dc91
[3.5] bpo-30645: don't append to an inner loop path in imp.load_package() (GH-2268) (GH-2365)

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