community.general/lib/ansible
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
..
cli Migrate basestring to a python3 compatible type (#17199) 2016-08-23 13:13:44 -07:00
compat Move py34 mock_open compat to compat/test/mock (#17157) 2016-08-19 18:11:24 -04:00
config Making the switch to v2 2015-05-03 21:47:26 -05:00
errors Fix some typos (#16498) 2016-06-29 14:31:25 -04:00
executor Clean up task_executor for python3 (#17219) 2016-08-24 07:52:36 -07:00
galaxy Migrate basestring to a python3 compatible type (#17199) 2016-08-23 13:13:44 -07:00
inventory Don't use an unset playbook basedir when searching for hostgroup vars 2016-08-17 16:28:48 -05:00
module_utils updates vyos shared module and moves functions into vyos_config 2016-08-24 10:17:31 -04:00
modules Update submodule refs 2016-08-24 06:42:57 -07:00
parsing Implement vault encrypted yaml variables. (#16274) 2016-08-23 20:03:11 -04:00
playbook Migrate basestring to a python3 compatible type (#17199) 2016-08-23 13:13:44 -07:00
plugins Migrate basestring to a python3 compatible type (#17199) 2016-08-23 13:13:44 -07:00
template Implement vault encrypted yaml variables. (#16274) 2016-08-23 20:03:11 -04:00
utils Migrate basestring to a python3 compatible type (#17199) 2016-08-23 13:13:44 -07:00
vars Don't use an unset playbook basedir when searching for hostgroup vars 2016-08-17 16:28:48 -05:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py * Fix race in creating temp directories pre-fork (#16965) 2016-08-04 19:35:36 -04:00
release.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
test-requirements.txt Making the switch to v2 2015-05-03 21:47:26 -05:00