[SCM] morituri/master: * morituri/extern/task/task.py: Also stub out log calls on Runner.
js at users.alioth.debian.org
js at users.alioth.debian.org
Sun Oct 19 20:09:33 UTC 2014
The following commit has been merged in the master branch:
commit a8c437307c826149a512b4e69018002a90bd4218
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date: Sun Aug 7 18:24:01 2011 +0000
* morituri/extern/task/task.py:
Also stub out log calls on Runner.
diff --git a/ChangeLog b/ChangeLog
index 809da0d..9d0af88 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
2011-08-07 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/extern/task/task.py:
+ Also stub out log calls on Runner.
+
+2011-08-07 Thomas Vander Stichele <thomas at apestaart dot org>
+
+ * morituri/extern/task/task.py:
Also handle error() log calls.
2011-08-07 Thomas Vander Stichele <thomas at apestaart dot org>
diff --git a/morituri/extern/task/task.py b/morituri/extern/task/task.py
index 62a7a24..b0bf6f2 100644
--- a/morituri/extern/task/task.py
+++ b/morituri/extern/task/task.py
@@ -385,13 +385,30 @@ class MultiCombinedTask(BaseMultiTask):
self.setProgress(float(self._stopped) / len(self.tasks))
BaseMultiTask.stopped(self, task)
-class TaskRunner(object, log.Loggable):
+class TaskRunner(object):
"""
I am a base class for task runners.
Task runners should be reusable.
"""
logCategory = 'TaskRunner'
+ ### log stubs
+ def warning(self, message, *args):
+ pass
+
+ def info(self, message, *args):
+ pass
+
+ def debug(self, message, *args):
+ pass
+
+ def log(self, message, *args):
+ pass
+
+ def error(self, message, *args):
+ pass
+
+
def run(self, task):
"""
Run the given task.
--
morituri packaging
More information about the pkg-multimedia-commits
mailing list