find_module(fullname, path=None) -> self or None. Search for a module specified by 'fullname'. 'fullname' must be the fully qualified (dotted) module name. It returns the zipimporter instance itself if the module was found, or None if it wasn't. The optional 'pa
(self, fullname, path=None)
| 144 | # Check whether we can satisfy the import of the module named by |
| 145 | # 'fullname'. Return self if we can, None if we can't. |
| 146 | def find_module(self, fullname, path=None): |
| 147 | """find_module(fullname, path=None) -> self or None. |
| 148 | |
| 149 | Search for a module specified by 'fullname'. 'fullname' must be the |
| 150 | fully qualified (dotted) module name. It returns the zipimporter |
| 151 | instance itself if the module was found, or None if it wasn't. |
| 152 | The optional 'path' argument is ignored -- it's there for compatibility |
| 153 | with the importer protocol. |
| 154 | |
| 155 | Deprecated since Python 3.10. Use find_spec() instead. |
| 156 | """ |
| 157 | _warnings.warn("zipimporter.find_module() is deprecated and slated for " |
| 158 | "removal in Python 3.12; use find_spec() instead", |
| 159 | DeprecationWarning) |
| 160 | return self.find_loader(fullname, path)[0] |
| 161 | |
| 162 | def find_spec(self, fullname, target=None): |
| 163 | """Create a ModuleSpec for the specified module. |
nothing calls this directly
no test coverage detected