From: Christian Heller Date: Mon, 16 Feb 2015 22:29:12 +0000 (+0100) Subject: Server/Py: Remove flush() the necessity of which I can't rationalize. X-Git-Tag: tce~533 X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/template?a=commitdiff_plain;h=6ddf68a935708159d568f3b3dc6fcca3dc27aa89;p=plomrogue Server/Py: Remove flush() the necessity of which I can't rationalize. --- diff --git a/plomrogue-server.py b/plomrogue-server.py index 2b5dcb6..04bc1d6 100755 --- a/plomrogue-server.py +++ b/plomrogue-server.py @@ -17,7 +17,6 @@ def setup_server_io(io_db): os.makedirs(io_dir, exist_ok=True) io_db["file_out"] = open(io_db["path_out"], "w") io_db["file_out"].write(io_db["teststring"] + "\n") - io_db["file_out"].flush() # TODO: Explain necessity. if os.access(io_db["path_in"], os.F_OK): os.remove(io_db["path_in"]) io_db["file_in"] = open(io_db["path_in"], "w")