Commit 5004ecef authored by Nikita Sirgienko's avatar Nikita Sirgienko
Browse files

[Python] Improve server code

parent 196e3e5b
...@@ -63,6 +63,8 @@ void PythonServer::runPythonCommand(const string& command) ...@@ -63,6 +63,8 @@ void PythonServer::runPythonCommand(const string& command)
" def __init__(self, std_stream):\n"\ " def __init__(self, std_stream):\n"\
" self.value = ''\n"\ " self.value = ''\n"\
" self.encoding = std_stream.encoding\n"\ " self.encoding = std_stream.encoding\n"\
" def flush():\n"\
" pass\n"\
" def write(self, txt):\n"\ " def write(self, txt):\n"\
" self.value += txt\n"\ " self.value += txt\n"\
"outputPythonBackend = CatchOutPythonBackend(sys.stdout)\n"\ "outputPythonBackend = CatchOutPythonBackend(sys.stdout)\n"\
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment