(cls, spec)
| 125 | |
| 126 | @classmethod |
| 127 | def _get_source(cls, spec): |
| 128 | origin = spec.origin and remove_prefix(spec.origin, "zip:") |
| 129 | if not origin: |
| 130 | raise ImportError(f"{spec.name!r} is not a zip module") |
| 131 | |
| 132 | zipname, slash, path = origin.partition("/") |
| 133 | return cls._packages[zipname].read(path).decode() |
| 134 | |
| 135 | @classmethod |
| 136 | def exec_module(cls, module): |
no test coverage detected