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 e8cf28f9a0
commit 7f28244cfe
1 changed files with 1 additions and 1 deletions

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()