From f59db03c60a2f6c0d832ad25903037543a4531ab Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sat, 12 Dec 2015 17:24:40 +0100 Subject: [PATCH] ProgressIndicator: flush the output file or it won't work correctly via ssh likely due to buffering, the progress indication was not visible. --- borg/helpers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/borg/helpers.py b/borg/helpers.py index df6f1163b..925dfb113 100644 --- a/borg/helpers.py +++ b/borg/helpers.py @@ -912,7 +912,8 @@ class ProgressIndicatorPercent: return self.output(pct) def output(self, percent): - print(self.msg % percent, file=self.file, end='\r' if self.same_line else '\n') + print(self.msg % percent, file=self.file, end='\r' if self.same_line else '\n') # python 3.3 gives us flush=True + self.file.flush() def finish(self): if self.same_line: