[SCM] morituri/master: * morituri/common/task.py: clear with whitespace.

js at users.alioth.debian.org js at users.alioth.debian.org
Sun Oct 19 20:08:44 UTC 2014


The following commit has been merged in the master branch:
commit 6804df4b7333dced152e7b0de887dc4f18c3691f
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Sat Apr 11 21:57:25 2009 +0000

    	* morituri/common/task.py:
    	  clear with whitespace.

diff --git a/ChangeLog b/ChangeLog
index 51a2820..0cbaa6e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2009-04-11  Thomas Vander Stichele  <thomas at apestaart dot org>
 
+	* morituri/common/task.py:
+	  clear with whitespace.
+
+2009-04-11  Thomas Vander Stichele  <thomas at apestaart dot org>
+
 	* examples/ARcue.py:
 	* morituri/common/task.py:
 	* morituri/image/image.py (added):
diff --git a/morituri/common/task.py b/morituri/common/task.py
index 62d9cb9..b5b5ec6 100644
--- a/morituri/common/task.py
+++ b/morituri/common/task.py
@@ -138,6 +138,11 @@ class SyncRunner(TaskRunner):
             if self._skip:
                 sys.stdout.write('%s %3d %%\n' % (
                     self._task.description, 100.0))
+            else:
+                # clear with whitespace
+                text = '%s %3d %%' % (
+                    self._task.description, 100.0)
+                sys.stdout.write("%s\r" % (' ' * len(text), ))
 
     def stopped(self, task):
         self._loop.quit()

-- 
morituri packaging



More information about the pkg-multimedia-commits mailing list