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