| author | Yang Zhao <yang@yangman.ca> | 2009-11-08 09:21:29 (GMT) |
|---|---|---|
| committer | Yang Zhao <yang@yangman.ca> | 2009-11-08 09:21:29 (GMT) |
| commit | 1fd564621773d855861b8844138c37125c2a554b (patch) | |
| tree | eb08e80b977b9d978e87fd1c8f00398a02a859fb | |
| parent | b6654beafbf3f943b3d8d731f4df5a37545a2f32 (diff) | |
Use most compact form of JSON for outputmaster
| -rwxr-xr-x | zabuton.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -171,7 +171,7 @@ class ViewServer: @classmethod def run(cls, logger=None, input=sys.stdin, output=sys.stdout): def _log(message): - json.dump(['log', str(message)], output) + json.dump(['log', str(message)], output, separators=(',', ':')) output.write('\n') output.flush() log = logger if logger else _log @@ -188,7 +188,7 @@ class ViewServer: retval = getattr(server, cmd[0])(*cmd[1:]) - json.dump(retval, output) + json.dump(retval, output, separators=(',', ':')) output.write('\n') output.flush() except KeyboardInterrupt: |
