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)
| 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'. |
no test coverage detected