* morituri/common/task.py:
clear with whitespace.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
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:
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user