fix conflict between --stats and --progress

the --stats output would be slightly garbled by --progress, because of
the \r that is output at the last line...

example:

    initializing cache
    reading files cache
    processing files
    ------------------------------------------------------------------------------ s/twotone
    Archive name: 2015-10-15-test
This commit is contained in:
Antoine Beaupré 2015-10-15 21:38:43 -04:00
parent 8b130a9d20
commit 7f77778419

View file

@ -181,7 +181,7 @@ class Statistics:
format_file_size(self.osize), format_file_size(self.csize), format_file_size(self.usize), self.nfiles, path)
else:
msg = ' ' * 79
print(msg, file=sys.stderr, end='\r')
print(msg, file=sys.stderr, end=final and "\n" or "\r")
sys.stderr.flush()