Commit beafae32 authored by Eckhart Arnold's avatar Eckhart Arnold
Browse files

- sever.py: bug fix

parent 99792e58
...@@ -202,7 +202,7 @@ class Server: ...@@ -202,7 +202,7 @@ class Server:
if isinstance(result, str): if isinstance(result, str):
writer.write(result.encode()) writer.write(result.encode())
else: else:
json.dump(writer, result) writer.write(json.dumps(result).encode())
else: else:
# JSON RPC # JSON RPC
......
...@@ -34,8 +34,8 @@ from DHParser.server import Server ...@@ -34,8 +34,8 @@ from DHParser.server import Server
scriptdir = os.path.dirname(os.path.realpath(__file__)) scriptdir = os.path.dirname(os.path.realpath(__file__))
def compiler_dummy(src: str, log_dir: str) -> Tuple[str, str]: def compiler_dummy(src: str, log_dir: str='') -> Tuple[str, str]:
return (src, log_dir) return src
class TestServer: class TestServer:
......
Supports Markdown
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