From 3bc35a9e25d3140b063b80c6c98c641c19d0bb5f Mon Sep 17 00:00:00 2001 From: Oleksii Shevchuk Date: Thu, 20 Oct 2016 09:12:29 +0300 Subject: [PATCH] Use async write cb --- pupy/modules/interactive_shell.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pupy/modules/interactive_shell.py b/pupy/modules/interactive_shell.py index 1590a13d..a43e5ee8 100644 --- a/pupy/modules/interactive_shell.py +++ b/pupy/modules/interactive_shell.py @@ -61,6 +61,7 @@ class InteractiveShell(PupyModule): def _read_loop(self, write_cb, complete): lastbuf = b'' + write_cb = rpyc.async(write_cb) while not complete.is_set(): r, _, x = select.select([sys.stdin], [], [sys.stdin], None)