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

Method get_input

doc/sphinx/source/simplerepl.py:100–115  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

98 return max(len(arr) - self.height, 0)
99
100 def get_input(self):
101 chars = list(self.orig_stdin.readline()[:-1])
102 while chars or self.requested_events:
103 if self.requested_events:
104 self.process_event(self.requested_events.pop())
105 continue
106 c = chars.pop(0)
107 if c in "/":
108 c = "\n"
109 elif c in "\\":
110 c = key_dispatch[self.config.undo_key][0]
111 elif c in "$":
112 c = key_dispatch[self.config.pastebin_key][0]
113 elif c in "|":
114 c = key_dispatch[self.config.reimport_key][0]
115 self.process_event(c)
116
117
118def main(args=None, locals_=None, banner=None):

Callers 1

mainFunction · 0.80

Calls 2

readlineMethod · 0.45
process_eventMethod · 0.45

Tested by

no test coverage detected