| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a7c0264 commit 599ff02
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -203,8 +203,9 @@ def load_package(name, path): | |||
| 203 | 203 | extensions = (machinery.SOURCE_SUFFIXES[:] + | |
| 204 | 204 | machinery.BYTECODE_SUFFIXES[:]) | |
| 205 | 205 | for extension in extensions: | |
| 206 | - path = os.path.join(path, '__init__'+extension) | ||
| 207 | - if os.path.exists(path): | ||
| 206 | + init_path = os.path.join(path, '__init__' + extension) | ||
| 207 | + if os.path.exists(init_path): | ||
| 208 | + path = init_path | ||
| 208 | 209 | break | |
| 209 | 210 | else: | |
| 210 | 211 | raise ValueError('{!r} is not a package'.format(path)) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -56,6 +56,7 @@ Ankur Ankan | |||
| 56 | 56 | Heidi Annexstad | |
| 57 | 57 | Ramchandra Apte | |
| 58 | 58 | Éric Araujo | |
| 59 | + Alexandru Ardelean | ||
| 59 | 60 | Alicia Arlen | |
| 60 | 61 | Jeffrey Armstrong | |
| 61 | 62 | Jason Asbahr | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -79,6 +79,10 @@ Library | |||
| 79 | 79 | correctly returns the ``127.0.0.1`` host, instead of treating ``@evil.com`` | |
| 80 | 80 | as the host in an authentification (``login@host``). | |
| 81 | 81 | ||
| 82 | + - bpo-30645: Fix path calculation in imp.load_package(), fixing it for | ||
| 83 | + cases when a package is only shipped with bytecodes. Patch by | ||
| 84 | + Alexandru Ardelean. | ||
| 85 | + | ||
| 82 | 86 | - bpo-23890: unittest.TestCase.assertRaises() now manually breaks a reference | |
| 83 | 87 | cycle to not keep objects alive longer than expected. | |
| 84 | 88 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments