summaryrefslogtreecommitdiff
path: root/taskflow/flow.py
diff options
context:
space:
mode:
authorTakashi Kajinami <tkajinam@redhat.com>2022-05-17 22:56:45 +0900
committerTakashi Kajinami <tkajinam@redhat.com>2022-05-18 16:12:37 +0900
commit44f17d005ff53008144ca7c509bcb1307d66b23f (patch)
treeb03024443b92a78f3cdacfca29f4010d24c8b685 /taskflow/flow.py
parentb5b69e8110da44a88b2260cd24ada3439f29938e (diff)
downloadtaskflow-44f17d005ff53008144ca7c509bcb1307d66b23f.tar.gz
Remove six
This library no longer supports Python 2, thus usage of six can be removed. This also removes workaround about pickle library used in Python 2 only. Change-Id: I19d298cf0f402d65f0b142dea0bf35cf992332a9
Diffstat (limited to 'taskflow/flow.py')
-rw-r--r--taskflow/flow.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/taskflow/flow.py b/taskflow/flow.py
index 3b974f7..8fac647 100644
--- a/taskflow/flow.py
+++ b/taskflow/flow.py
@@ -17,7 +17,6 @@
import abc
from oslo_utils import reflection
-import six
# Link metadata keys that have inherent/special meaning.
#
@@ -43,8 +42,7 @@ _CHOP_PAT_LEN = len(_CHOP_PAT)
LINK_DECIDER_DEPTH = 'decider_depth'
-@six.add_metaclass(abc.ABCMeta)
-class Flow(object):
+class Flow(object, metaclass=abc.ABCMeta):
"""The base abstract class of all flow implementations.
A flow is a structure that defines relationships between tasks. You can
@@ -60,7 +58,7 @@ class Flow(object):
"""
def __init__(self, name, retry=None):
- self._name = six.text_type(name)
+ self._name = str(name)
self._retry = retry
# NOTE(akarpinska): if retry doesn't have a name,
# the name of its owner will be assigned