- Progress bar now goes to stderr, which makes more sense when piping

output.
This commit is contained in:
ccremers 2004-11-19 10:13:08 +00:00
parent 0b7031e550
commit 560c3e0780

View File

@ -138,14 +138,14 @@ def ShowProgress (i,n,txt):
bar = bar + "." bar = bar + "."
i = i+1 i = i+1
bar = bar + "] " + txt bar = bar + "] " + txt
sys.stdout.write(bar) sys.stderr.write(bar)
sys.stdout.flush() sys.stderr.flush()
LastProgress[n] = (factor, txt) LastProgress[n] = (factor, txt)
def ClearProgress (n,txt): def ClearProgress (n,txt):
bar = " " * (1 + ProgressBarWidth + 2 + len(txt)) bar = " " * (1 + ProgressBarWidth + 2 + len(txt))
sys.stdout.write("\r" + bar + "\r") sys.stderr.write("\r" + bar + "\r")
sys.stdout.flush() sys.stderr.flush()
def DescribeContext (filep, protocols, claim): def DescribeContext (filep, protocols, claim):