r281 - branches/rewrite/src
Marco Presi
partial-mirror-devel@lists.alioth.debian.org
Wed, 10 Nov 2004 07:42:11 -0700
Author: zufus
Date: Wed Nov 10 07:42:10 2004
New Revision: 281
Modified:
branches/rewrite/src/DisplayInfo.py
Log:
changed refersh string format to put it in fixed length shape
Modified: branches/rewrite/src/DisplayInfo.py
==============================================================================
--- branches/rewrite/src/DisplayInfo.py (original)
+++ branches/rewrite/src/DisplayInfo.py Wed Nov 10 07:42:10 2004
@@ -47,8 +47,11 @@
def refresh(self):
try:
- sys.stdout.write("[ %.2f%% %s]" % (self.current*100/(self.max - self.min),
- os.path.basename(self.text).split('_')[0]))
+ sys.stdout.write("[%s: %.2f%%]" % (os.path.basename(self.text).split('_')[0]),
+ self.current*100/(self.max - self.min))
+## I am not sure if we had to print to stderr or stdout..
+## sys.stderr.write("[%s: %.2f%%]" % (os.path.basename(self.text).split('_')[0]),
+## self.current*100/(self.max - self.min))
except ZeroDivisionError:
pass