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

Method is_package

Lib/zipimport.py:201–210  ·  view source on GitHub ↗

is_package(fullname) -> bool. Return True if the module specified by fullname is a package. Raise ZipImportError if the module couldn't be found.

(self, fullname)

Source from the content-addressed store, hash-verified

199
200 # Return a bool signifying whether the module is a package or not.
201 def is_package(self, fullname):
202 """is_package(fullname) -> bool.
203
204 Return True if the module specified by fullname is a package.
205 Raise ZipImportError if the module couldn't be found.
206 """
207 mi = _get_module_info(self, fullname)
208 if mi is None:
209 raise ZipImportError(f"can't find module {fullname!r}", name=fullname)
210 return mi
211
212
213 # Load and return the module named by 'fullname'.

Callers 1

_find_moduleFunction · 0.45

Calls 2

ZipImportErrorClass · 0.85
_get_module_infoFunction · 0.70

Tested by

no test coverage detected