| 85 | self.repl.main_loop.process_input(["enter"]) |
| 86 | |
| 87 | class EvalFactory(protocol.ServerFactory): |
| 88 | def __init__(self, myrepl): |
| 89 | self.repl = myrepl |
| 90 | |
| 91 | def buildProtocol(self, addr): |
| 92 | return EvalProtocol(self.repl) |
| 93 | |
| 94 | |
| 95 | # If Twisted is not available urwid has no TwistedEventLoop attribute. |