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

Method is_package

tools/python-3.11.9-amd64/Lib/zipimport.py:258–267  ·  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

256
257 # Return a bool signifying whether the module is a package or not.
258 def is_package(self, fullname):
259 """is_package(fullname) -> bool.
260
261 Return True if the module specified by fullname is a package.
262 Raise ZipImportError if the module couldn't be found.
263 """
264 mi = _get_module_info(self, fullname)
265 if mi is None:
266 raise ZipImportError(f"can't find module {fullname!r}", name=fullname)
267 return mi
268
269
270 # Load and return the module named by 'fullname'.

Callers 1

get_resource_readerMethod · 0.95

Calls 2

_get_module_infoFunction · 0.85
ZipImportErrorClass · 0.85

Tested by

no test coverage detected