(cls, text)
| 300 | |
| 301 | @classmethod |
| 302 | def parse(cls, text): |
| 303 | raw = json.loads(text) |
| 304 | mod = raw['module'] |
| 305 | mod['__spec__'] = types.SimpleNamespace(**mod['__spec__']) |
| 306 | raw['module'] = types.SimpleNamespace(**mod) |
| 307 | return cls(**raw) |
| 308 | |
| 309 | @classmethod |
| 310 | def from_subinterp(cls, name, interpid=None, *, pipe=None, **script_kwds): |
no test coverage detected