diff options
author | Brett Cannon <brettcannon@users.noreply.github.com> | 2017-06-23 18:23:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-23 18:23:36 (GMT) |
commit | 9db3ae045dd462a2da2e016c44231de1befd1f87 (patch) | |
tree | 389926d4da9f2610d841f03ec300da6279c8a4ea /Misc | |
parent | e7135751b8e48af80665e40ac8fa6d0073e5affe (diff) | |
download | cpython-9db3ae045dd462a2da2e016c44231de1befd1f87.zip cpython-9db3ae045dd462a2da2e016c44231de1befd1f87.tar.gz cpython-9db3ae045dd462a2da2e016c44231de1befd1f87.tar.bz2 |
[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)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/ACKS | 1 | ||||
-rw-r--r-- | Misc/NEWS | 4 |
2 files changed, 5 insertions, 0 deletions
@@ -56,6 +56,7 @@ Ankur Ankan Heidi Annexstad Ramchandra Apte Éric Araujo +Alexandru Ardelean Alicia Arlen Jeffrey Armstrong Jason Asbahr @@ -101,6 +101,10 @@ Library variable-argument parameters wrapped with partialmethod. Patch by Dong-hee Na. +- bpo-30645: Fix path calculation in imp.load_package(), fixing it for + cases when a package is only shipped with bytecodes. Patch by + Alexandru Ardelean. + - bpo-29931: Fixed comparison check for ipaddress.ip_interface objects. Patch by Sanjay Sundaresan. |