community.general/lib/ansible
Marius Gedminas 2b73002044 Python 3: make ansible.template.safe_eval() work
Two things changed in Python 3.4:

- 'basestring' is no longer defined, so use six.string_types

- True/False are now special AST node types (NamedConstant) rather than
  just names

(Good thing we had tests, or I wouldn't have noticed the 2nd thing!)

I found only one place where safe_eval() is called inside the ansible
codebase: in lib/template/__init__.py.  The call to safe_eval(result,
...) is protected by result.startswith('...'), which means result cannot
possibly be a byte string on Python 3 (or startswith() would raise, so
six.string_types (which excludes byte strings on Python 3) is fine here.
2015-09-11 09:37:44 +03:00
..
cli added verbosity to ansible-doc to make it easier to trace down issues 2015-09-10 16:50:14 -04:00
compat Making the switch to v2 2015-05-03 21:47:26 -05:00
config Making the switch to v2 2015-05-03 21:47:26 -05:00
errors Making the switch to v2 2015-05-03 21:47:26 -05:00
executor Use the original (un-templated) args for include params 2015-09-11 00:53:27 -04:00
galaxy Python 3: avoid iteritems() in a template 2015-09-03 10:11:32 +03:00
inventory * Make sure we don't sometimes get byte strings instead of unicode strings 2015-09-09 01:24:11 -07:00
module_utils Merge pull request #11818 from Java1Guy/module_utils_ec2_for_ecs 2015-09-10 11:06:19 +05:30
modules Submodule pointer update 2015-09-10 15:44:30 -04:00
new_inventory Making the switch to v2 2015-05-03 21:47:26 -05:00
parsing Python 3: use the right PyYAML SafeRepresenter for unicode 2015-09-10 08:57:53 +03:00
playbook Compare include params against deprecated param names too 2015-09-09 22:15:50 -04:00
plugins Fix some bugs related to facts/nonpersistent-facts cache split 2015-09-10 17:36:39 -04:00
template Python 3: make ansible.template.safe_eval() work 2015-09-11 09:37:44 +03:00
utils Use UnsafeProxy for lookup results too 2015-09-08 12:19:39 -04:00
vars Fix some bugs related to facts/nonpersistent-facts cache split 2015-09-10 17:36:39 -04:00
__init__.py Re-adding submodules after moving things around 2015-05-03 22:30:51 -05:00
constants.py actually implemented flags correctly for all priv escalation methods 2015-09-02 11:31:39 -04:00
test-requirements.txt Making the switch to v2 2015-05-03 21:47:26 -05:00