- Progress bar now goes to stderr, which makes more sense when piping
output.
This commit is contained in:
parent
0b7031e550
commit
560c3e0780
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user