An optional method for clearing the finder's cache, if any. This method is used by importlib.invalidate_caches().
(self)
| 41 | # hasattr checks we do to support backward compatibility. |
| 42 | |
| 43 | def invalidate_caches(self): |
| 44 | """An optional method for clearing the finder's cache, if any. |
| 45 | This method is used by importlib.invalidate_caches(). |
| 46 | """ |
| 47 | |
| 48 | _register(MetaPathFinder, machinery.BuiltinImporter, machinery.FrozenImporter, |
| 49 | machinery.PathFinder, machinery.WindowsRegistryFinder) |