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/parallel_table_multiply.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/parallel_table_multiply.py')
| -rw-r--r-- | taskflow/examples/parallel_table_multiply.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/taskflow/examples/parallel_table_multiply.py b/taskflow/examples/parallel_table_multiply.py index 5cd8e9c..3eaa15e 100644 --- a/taskflow/examples/parallel_table_multiply.py +++ b/taskflow/examples/parallel_table_multiply.py @@ -28,7 +28,6 @@ top_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), sys.path.insert(0, top_dir) import futurist -from six.moves import range as compat_range from taskflow import engines from taskflow.patterns import unordered_flow as uf @@ -86,9 +85,9 @@ def main(): tbl = [] cols = random.randint(1, 100) rows = random.randint(1, 100) - for _i in compat_range(0, rows): + for _i in range(0, rows): row = [] - for _j in compat_range(0, cols): + for _j in range(0, cols): row.append(random.random()) tbl.append(row) @@ -112,7 +111,7 @@ def main(): # # TODO(harlowja): probably easier just to sort instead of search... computed_tbl = [] - for i in compat_range(0, len(tbl)): + for i in range(0, len(tbl)): for t in f: if t.index == i: computed_tbl.append(e.storage.get(t.name)) |
