From f09d42a32ec66d61c26d71ab7ce41a7b4433d6a4 Mon Sep 17 00:00:00 2001 From: Matt Post Date: Thu, 24 Jan 2019 16:52:10 -0500 Subject: [PATCH] added flush() (#628) --- sockeye/output_handler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sockeye/output_handler.py b/sockeye/output_handler.py index 5562fe1e0..636a1ceb8 100644 --- a/sockeye/output_handler.py +++ b/sockeye/output_handler.py @@ -413,6 +413,7 @@ def handle(self, d_ = t_output.json(self.align_threshold) self.stream.write("%s\n" % json.dumps(d_, sort_keys=True)) + self.stream.flush() def reports_score(self) -> bool: return True