From 560c3e07809cf01a3b04016767f6b5b52c081bc3 Mon Sep 17 00:00:00 2001 From: ccremers Date: Fri, 19 Nov 2004 10:13:08 +0000 Subject: [PATCH] - Progress bar now goes to stderr, which makes more sense when piping output. --- spdl/multiprotocoltest.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spdl/multiprotocoltest.py b/spdl/multiprotocoltest.py index fb5cdcc..d3d514d 100755 --- a/spdl/multiprotocoltest.py +++ b/spdl/multiprotocoltest.py @@ -138,14 +138,14 @@ def ShowProgress (i,n,txt): bar = bar + "." i = i+1 bar = bar + "] " + txt - sys.stdout.write(bar) - sys.stdout.flush() + sys.stderr.write(bar) + sys.stderr.flush() LastProgress[n] = (factor, txt) def ClearProgress (n,txt): bar = " " * (1 + ProgressBarWidth + 2 + len(txt)) - sys.stdout.write("\r" + bar + "\r") - sys.stdout.flush() + sys.stderr.write("\r" + bar + "\r") + sys.stderr.flush() def DescribeContext (filep, protocols, claim):