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/examples/wbe_event_sender.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/examples/wbe_event_sender.py')
-rw-r--r-- | taskflow/examples/wbe_event_sender.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/taskflow/examples/wbe_event_sender.py b/taskflow/examples/wbe_event_sender.py index 9f9dbd8..2d72683 100644 --- a/taskflow/examples/wbe_event_sender.py +++ b/taskflow/examples/wbe_event_sender.py @@ -25,8 +25,6 @@ top_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) sys.path.insert(0, top_dir) -from six.moves import range as compat_range - from taskflow import engines from taskflow.engines.worker_based import worker from taskflow.patterns import linear_flow as lf @@ -124,7 +122,7 @@ if __name__ == "__main__": try: # Create a set of worker threads to simulate actual remote workers... print('Running %s workers.' % (MEMORY_WORKERS)) - for i in compat_range(0, MEMORY_WORKERS): + for i in range(0, MEMORY_WORKERS): # Give each one its own unique topic name so that they can # correctly communicate with the engine (they will all share the # same exchange). |