SIGN IN SIGN UP

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.
D
Desmond Cheong committed
3abf6f010243a91bf57cbf357dac33193f7b8407
Parent: bbba282
Committed by GitHub <noreply@github.com> on 3/8/2021, 8:06:02 PM