summaryrefslogtreecommitdiff
path: root/Lib/importlib/resources.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-39791 native hooks for importlib.resources.files (GH-20576)Jason R. Coombs2020-06-071-71/+14
| | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* bpo-39791: Add files() to importlib.resources (GH-19722)Jason R. Coombs2020-05-081-102/+59
| | | | | | | | | * 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>
* bpo-40443: Remove unused imports in stdlib (GH-19815)Victor Stinner2020-05-011-2/+1
|
* bpo-25711: Move _ZipImportResourceReader from importlib to zipimport. (GH-9406)Serhiy Storchaka2018-09-191-84/+0
|
* bpo-33537: Add an __all__ to importlib.resources (#6920)Barry Warsaw2018-05-171-8/+20
|
* bpo-33254: do not return an empty list when asking for the contents of a ↵Brett Cannon2018-04-301-11/+10
| | | | namespace package (GH-6467)
* bpo-33151: Handle submodule resources (GH-6268)Barry Warsaw2018-03-271-3/+5
|
* bpo-32303 - Consistency fixes for namespace loaders (#5481)Barry Warsaw2018-02-021-3/+12
| | | | | | | * Make sure ``__spec__.loader`` matches ``__loader__`` for namespace packages. * Make sure ``__spec__.origin` matches ``__file__`` for namespace packages. https://bugs.python.org/issue32303 https://bugs.python.org/issue32305
* bpo-32248 - Implement `ResourceReader` and `get_resource_reader()` for ↵Barry Warsaw2018-01-241-67/+83
| | | | zipimport (#5248)
* Implement the get_resource_reader() API for file system imports (#5168)Barry Warsaw2018-01-151-2/+4
|
* bpo-32248 - Implement importlib.resources (#4911)Barry Warsaw2017-12-301-0/+303
Port importlib_resources to importlib.resources