MCPcopy Index your code
hub / github.com/microsoft/playwright-python / deserialize_message

Method deserialize_message

playwright/_impl/_transport.py:83–88  ·  view source on GitHub ↗
(self, data: Union[str, bytes])

Source from the content-addressed store, hash-verified

81 return msg.encode()
82
83 def deserialize_message(self, data: Union[str, bytes]) -> ParsedMessagePayload:
84 obj = json.loads(data)
85
86 if "DEBUGP" in os.environ: # pragma: no cover
87 print("\x1b[33mRECV>\x1b[0m", json.dumps(obj, indent=2))
88 return obj
89
90
91class PipeTransport(Transport):

Callers 1

runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected