summaryrefslogtreecommitdiffstats
path: root/Lib/zipimport.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.9] bpo-40924: Revert "bpo-39791 native hooks for ↵Łukasz Langa2020-06-091-2/+76
| | | | | | 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-76/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-39033: Fix NameError in zipimport during hash validation (GH-17588)Xtreak2019-12-151-1/+1
| | | | Patch by Karthikeyan Singaravelan.
* bpo-36842: Implement PEP 578 (GH-12613)Steve Dower2019-05-231-2/+2
| | | Adds sys.audit, sys.addaudithook, io.open_code, and associated C APIs.
* bpo-34726: Fix handling of hash-based pycs in zipimport. (GH-10327)Elvis Pranskevichus2018-11-071-29/+66
| | | | | | | | Current support for hash-based bytecode files in `zipimport` is rather sparse, which leads to test failures when the test suite is ran with the ``SOURCE_DATE_EPOCH`` environment variable set. This teaches zipimport to handle hash-based pycs properly.
* bpo-5950: Support reading zips with comments in zipimport (#9548)Zackery Spytz2018-09-251-5/+31
| | | * bpo-5950: Support reading zips with comments in zipimport
* bpo-25711: Move _ZipImportResourceReader from importlib to zipimport. (GH-9406)Serhiy Storchaka2018-09-191-2/+81
|
* bpo-25711: Rewrite zipimport in pure Python. (GH-6809)Serhiy Storchaka2018-09-181-0/+650