nfv/nfv/nfv-common/nfv_common/tasks
Dan Voiculeasa d20aad6935 py3: nfv wrap dict.items() in list()
In python2 dict.items() returns a list, while in python3 it returns an
iterator. Modifying a dict while iterating over it(insert, delete)
produces a runtime error.

Wrap dict.items() in list() with 2 exceptions:
 - the dict is local scoped and no modification while iterating is done
 - access is atomic (e.g. using locks)

Story: 2008454
Task: 42727
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: I3fe93c49b360f86d6a962bbbce2bf30c2555e459
2021-06-30 22:03:53 +03:00
..
__init__.py Cleanup tox alphabetical imports in nfv 2018-12-27 11:55:20 -06:00
_task.py py3: nfv wrap dict.items() in list() 2021-06-30 22:03:53 +03:00
_task_future.py Handle REST API timeouts gracefully in the VIM 2020-06-03 11:37:56 -05:00
_task_result.py StarlingX open source release updates 2018-05-31 07:36:51 -07:00
_task_scheduler.py py3: nfv wrap dict.items() in list() 2021-06-30 22:03:53 +03:00
_task_work.py Cleanup tox alphabetical imports in nfv 2018-12-27 11:55:20 -06:00
_task_worker.py py3: nfv use real division operator 2021-06-29 12:22:42 +03:00
_task_worker_pool.py Clean up imports based on flake8 2018-09-20 16:43:28 -05:00
unit_test.py py3: nfv use real division operator 2021-06-29 12:22:42 +03:00