Skip to content

Commit

Permalink
added flush() (#628)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpost authored and fhieber committed Jan 24, 2019
1 parent a5fe6d6 commit f09d42a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sockeye/output_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f09d42a

Please sign in to comment.