MCPcopy Index your code
hub / github.com/python/cpython / is_package

Method is_package

Lib/zipimport.py:196–205  ·  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

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

Callers 1

_find_moduleFunction · 0.45

Calls 2

_get_module_infoFunction · 0.85
ZipImportErrorClass · 0.85

Tested by

no test coverage detected