Merge pull request #109 from mattrose/fix-debugserver

fix io errors on debugserver
This commit is contained in:
Matt Rose 2020-06-10 21:44:32 -04:00 committed by GitHub
commit 8c1f96d1f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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