summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/_common.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.9] bpo-40924: Remove protocol for supplying Traversable objects from ↵Jason R. Coombs2020-06-141-11/+1
| | | | | loaders (GH-20820) Remove protocol that loaders can present a files method as found in importlib_resources 1.3-1.6 (added in Python 3.8b1).
* [3.9] bpo-40924: Revert "bpo-39791 native hooks for ↵Łukasz Langa2020-06-091-63/+19
| | | | | | importlib.resources.files (GH-20576)" (#20760) This reverts commit 9cf1be46e3692d565461afd3afa326d124d743dd due to https://bugs.python.org/issue40924.
* bpo-39791 native hooks for importlib.resources.files (GH-20576)Miss Islington (bot)2020-06-081-19/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Provide native .files support on SourceFileLoader. * Add native importlib.resources.files() support to zipimporter. Remove fallback support. * make regen-all * šŸ“œšŸ¤– Added by blurb_it. * Move 'files' into the ResourceReader so it can carry the relevant module name context. * Create 'importlib.readers' module and add FileReader to it. * Add zip reader and rely on it for a TraversableResources object on zipimporter. * Remove TraversableAdapter, no longer needed. * Update blurb. * Replace backslashes with forward slashes. * Incorporate changes from importlib_metadata 2.0, finalizing the interface for extension via get_resource_reader. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> (cherry picked from commit 843c27765652e2322011fb3e5d88f4837de38c06) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* bpo-39791: Add files() to importlib.resources (GH-19722)Jason R. Coombs2020-05-081-0/+72
* bpo-39791: Update importlib.resources to support files() API (importlib_resources 1.5). * šŸ“œšŸ¤– Added by blurb_it. * Add some documentation about the new objects added. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>