MCPcopy Create free account
hub / github.com/bpython/bpython / EvalProtocol

Class EvalProtocol

bpython/urwid.py:75–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73else:
74
75 class EvalProtocol(basic.LineOnlyReceiver):
76 delimiter = "\n"
77
78 def __init__(self, myrepl) -> None:
79 self.repl = myrepl
80
81 def lineReceived(self, line) -> None:
82 # HACK!
83 # TODO: deal with encoding issues here...
84 self.repl.main_loop.process_input(line)
85 self.repl.main_loop.process_input(["enter"])
86
87 class EvalFactory(protocol.ServerFactory):
88 def __init__(self, myrepl):

Callers 1

buildProtocolMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected