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

Class EventQueue

Lib/_pyrepl/unix_eventqueue.py:71–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69
70
71class EventQueue(BaseEventQueue):
72 def __init__(self, fd: int, encoding: str, ti: TermInfo) -> None:
73 keycodes = get_terminal_keycodes(ti)
74 if os.isatty(fd):
75 backspace = tcgetattr(fd)[6][VERASE]
76 keycodes[backspace] = "backspace"
77 BaseEventQueue.__init__(self, encoding, keycodes)

Callers 2

__init__Method · 0.70
__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…