MCPcopy Index your code
hub / github.com/python/cpython / _event

Method _event

Lib/test/test_pyrepl/test_eventqueue.py:155–158  ·  view source on GitHub ↗
(evt, data, raw=None)

Source from the content-addressed store, hash-verified

153 eq.keymap = {}
154
155 def _event(evt, data, raw=None):
156 r = raw if raw is not None else data.encode(eq.encoding)
157 e = Event(evt, data, r)
158 return e
159
160 def _push(keys):
161 for k in keys:

Callers

nothing calls this directly

Calls 2

EventClass · 0.90
encodeMethod · 0.45

Tested by

no test coverage detected