MCPcopy Index your code
hub / github.com/RustPython/RustPython / _get_module_info

Function _get_module_info

crates/wasm/Lib/whlimport.py:160–168  ·  view source on GitHub ↗
(zf, path)

Source from the content-addressed store, hash-verified

158
159
160def _get_module_info(zf, path):
161 for suffix, isbytecode, ispackage in _zip_searchorder:
162 fullpath = path + suffix
163 try:
164 zf.getinfo(fullpath)
165 except KeyError:
166 continue
167 return ispackage, fullpath
168 return None, None

Callers 1

find_specMethod · 0.70

Calls 1

getinfoMethod · 0.45

Tested by

no test coverage detected