summaryrefslogtreecommitdiff
path: root/taskflow/patterns/linear_flow.py
diff options
context:
space:
mode:
authorIvan A. Melnikov <imelnikov@griddynamics.com>2013-08-28 12:37:05 +0400
committerIvan A. Melnikov <imelnikov@griddynamics.com>2013-09-03 11:00:31 +0400
commit98baedda27eab38f6754650a7972a8f5571b795a (patch)
tree8e36177752b0f73bfeaf821b549b8a97fda3d967 /taskflow/patterns/linear_flow.py
parent317a24e1d8dbfb105e2682b17b637f8459ad42fe (diff)
downloadtaskflow-98baedda27eab38f6754650a7972a8f5571b795a.tar.gz
Rename Task.__call__ to Task.execute
We'd like library interface to be nice and simple, which implies that it does not involve too many underscores. Also 'execute' matches with 'revert' nicely. Suggested-by: Anastasia Karpinska <akarpinska@griddynamics.com> Change-Id: Iea72e6230a32665b4236a1e7d1dcc41bd56d0418
Diffstat (limited to 'taskflow/patterns/linear_flow.py')
-rw-r--r--taskflow/patterns/linear_flow.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/taskflow/patterns/linear_flow.py b/taskflow/patterns/linear_flow.py
index 5f7e9a8..3299352 100644
--- a/taskflow/patterns/linear_flow.py
+++ b/taskflow/patterns/linear_flow.py
@@ -16,7 +16,6 @@
# License for the specific language governing permissions and limitations
# under the License.
-import collections
import functools
import logging
import sys
@@ -64,7 +63,6 @@ class Flow(flow.Flow):
@decorators.locked
def add(self, task):
"""Adds a given task to this flow."""
- assert isinstance(task, collections.Callable)
r = utils.AOTRunner(task)
r.runs_before = list(reversed(self._runners))
self._runners.append(r)