community.general/lib/ansible/executor
Toshio Kuratomi 040a38171a Clean up task_executor for python3 (#17219)
ran task_executor through python-modernize and then made changes to the
code pointed out by it:

* Most places where we looped through dict.keys() changed to
      for key in dict:
  Using keys() in python2 creates a list() of keys.  For iterating, we
  can iterate over the dict itself and we'll be handed back each key.
  In python3, doing it this way does not create a new list and thus is
  more memory efficient.
* In one place, use:
      for key in list(dict.keys()):
  because we're deleting elements from the dictionary inside of the
  loop.  So we really do need to iterate over a separate list of the
  keys to avoid modifying the dictionary that we're iterating over.
  (Fixes Python3 bug)
* In one place, change the order of an if-elif-else tree so that the
  most frequent cases are evaluated first. (Optimization)
2016-08-24 07:52:36 -07:00
..
process py3-friendly multi-exception fix for missing fileno under debugger 2016-08-23 19:55:39 -07:00
__init__.py Making the switch to v2 2015-05-03 21:47:26 -05:00
module_common.py Workaround for Ubuntu Python3 looking for modules in wrong places (#17211) 2016-08-24 00:43:50 -07:00
play_iterator.py Cache tasks by uuid in PlayIterator for O(1) lookups 2016-08-10 12:49:19 -05:00
playbook_executor.py Clean up PlaybookExecutor logic for batches and errors 2016-08-18 13:52:34 -05:00
stats.py Making the switch to v2 2015-05-03 21:47:26 -05:00
task_executor.py Clean up task_executor for python3 (#17219) 2016-08-24 07:52:36 -07:00
task_queue_manager.py Don't immediately return failed for any_errors_fatal tasks 2016-08-12 14:18:50 -05:00
task_result.py Performance improvements 2016-08-08 15:58:46 -05:00