MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / find_module

Method find_module

tools/python-3.11.9-amd64/Lib/zipimport.py:146–160  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 2

find_loaderMethod · 0.95
warnMethod · 0.45

Tested by

no test coverage detected