]> granicus.if.org Git - python/commit
bpo-30645: don't append to an inner loop path in imp.load_package() (GH-2268)
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Fri, 23 Jun 2017 17:35:03 +0000 (20:35 +0300)
committerBrett Cannon <brettcannon@users.noreply.github.com>
Fri, 23 Jun 2017 17:35:03 +0000 (10:35 -0700)
commitc38e32a10061a7c6d54e7e53ffabf7af7998f045
tree4a483af1b13929282fa42aeb90e9b1da5247b952
parentd174d24a5d37d1516b885dc7c82f71ecd5930700
bpo-30645: don't append to an inner loop path in imp.load_package() (GH-2268)

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.
Lib/imp.py
Misc/ACKS
Misc/NEWS