diff options
author | Takashi Kajinami <tkajinam@redhat.com> | 2022-05-17 22:56:45 +0900 |
---|---|---|
committer | Takashi Kajinami <tkajinam@redhat.com> | 2022-05-18 16:12:37 +0900 |
commit | 44f17d005ff53008144ca7c509bcb1307d66b23f (patch) | |
tree | b03024443b92a78f3cdacfca29f4010d24c8b685 /taskflow/retry.py | |
parent | b5b69e8110da44a88b2260cd24ada3439f29938e (diff) | |
download | taskflow-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/retry.py')
-rw-r--r-- | taskflow/retry.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/taskflow/retry.py b/taskflow/retry.py index c019815..4935bbf 100644 --- a/taskflow/retry.py +++ b/taskflow/retry.py @@ -18,7 +18,6 @@ import abc import enum -import six from taskflow import atom from taskflow import exceptions as exc @@ -100,7 +99,7 @@ class History(object): self._contents[index], ] for (provided, outcomes) in contents: - for (owner, outcome) in six.iteritems(outcomes): + for (owner, outcome) in outcomes.items(): yield (owner, outcome) def __len__(self): @@ -136,8 +135,7 @@ class History(object): return iter(self._contents) -@six.add_metaclass(abc.ABCMeta) -class Retry(atom.Atom): +class Retry(atom.Atom, metaclass=abc.ABCMeta): """A class that can decide how to resolve execution failures. This abstract base class is used to inherit from and provide different |