bpo-14678: Update zipimport to support importlib.invalidate_caches() (GH-24159)

Added an invalidate_caches() method to the zipimport.zipimporter class based on the implementation of importlib.FileFinder.invalidate_caches(). This was done by adding a get_files() method and an _archive_mtime attribute to zipimport.zipimporter to check for updates or cache invalidation whenever the cache of files and toc entry information in the zipimporter is accessed.
This commit is contained in:
Desmond Cheong 2021-03-09 04:06:02 +08:00 committed by GitHub
parent bbba28212c
commit 3abf6f0102
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 1020 additions and 939 deletions

File diff suppressed because it is too large Load diff