diff options
author | William Schwartz <wkschwartz@gmail.com> | 2021-01-16 17:22:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-16 17:22:21 (GMT) |
commit | f08c66467d56c71f75c6659ede9177449fe9d2e6 (patch) | |
tree | 54a275d9fb9e807c0ea5762c9f987727e118bb97 /Misc | |
parent | 187f76def8a5bd0af7ab512575cad30cfe624b05 (diff) | |
download | cpython-f08c66467d56c71f75c6659ede9177449fe9d2e6.zip cpython-f08c66467d56c71f75c6659ede9177449fe9d2e6.tar.gz cpython-f08c66467d56c71f75c6659ede9177449fe9d2e6.tar.bz2 |
[3.8] bpo-42531: Teach importlib.resources.path to handle packages without __file__ (GH-23611)
Fixes [bpo-42531]() for Python 3.8.
The issue also applies to 3.7. If this PR looks like it'll be accepted, I can cherry-pick it to the 3.7 branch and submit a follow-up PR.
Automerge-Triggered-By: GH:jaraco
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2020-12-02-16-28-04.bpo-42531.2sLlFW.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-12-02-16-28-04.bpo-42531.2sLlFW.rst b/Misc/NEWS.d/next/Library/2020-12-02-16-28-04.bpo-42531.2sLlFW.rst new file mode 100644 index 0000000..7927078 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2020-12-02-16-28-04.bpo-42531.2sLlFW.rst @@ -0,0 +1 @@ +:func:`importlib.resources.path` now works for :term:`package`\ s missing the optional :attr:`__file__` attribute (more specifically, packages whose :attr:`__spec__`\ ``.``\ :attr:`~importlib.machinery.ModuleSpec.origin` :keyword:`is` :data:`None`).
\ No newline at end of file |