MCPcopy Index your code
hub / github.com/bpython/bpython / is_simple_event

Function is_simple_event

bpython/curtsiesfrontend/repl.py:2240–2246  ·  view source on GitHub ↗
(e: str | events.Event)

Source from the content-addressed store, hash-verified

2238
2239
2240def is_simple_event(e: str | events.Event) -> bool:
2241 if isinstance(e, events.Event):
2242 return False
2243 return (
2244 e in ("<Ctrl-j>", "<Ctrl-m>", "<PADENTER>", "\n", "\r", "<SPACE>")
2245 or len(e) <= 1
2246 )

Callers 1

process_control_eventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected