From 42462929748dc68875a66f657b321b3b64c6162f Mon Sep 17 00:00:00 2001 From: Matt Rose Date: Mon, 1 Jun 2020 20:11:03 -0400 Subject: [PATCH] fix io errors on debugserver --- terminatorlib/debugserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminatorlib/debugserver.py b/terminatorlib/debugserver.py index 731dd377..cdd4321a 100644 --- a/terminatorlib/debugserver.py +++ b/terminatorlib/debugserver.py @@ -33,7 +33,7 @@ class PythonConsoleServer(socketserver.BaseRequestHandler): def handle(self): ddbg("debugserver: handling") try: - self.socketio = self.request.makefile() + self.socketio = self.request.makefile(mode='rw') sys.stdout = self.socketio sys.stdin = self.socketio sys.stderr = self.socketio