community.general/lib/ansible
Marius Gedminas b95e3d18a7 Python 3: use the right PyYAML SafeRepresenter for unicode
PyYAML has a SafeRepresenter in lib/... that defines

    def represent_unicode(self, data):
        return self.represent_scalar(u'tag:yaml.org,2002:str', data)

and a different SafeRepresenter in lib3/... that defines

    def represent_str(self, data):
        return self.represent_scalar('tag:yaml.org,2002:str', data)

so the right thing to do on Python 3 is to use represent_str.

(AnsibleUnicode is a subclass of six.text_type, i.e. 'str' on Python 3.)
2015-09-10 08:57:53 +03:00
..
cli Vault missing DataLoader for pwd file #12293 2015-09-09 15:33:52 -05: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 Fix indent on line in playbook executor 2015-09-09 18:10:38 -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 update submodule refs for documentation formatting 2015-09-05 08:56:15 -07: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 order of loading of modules. 2015-09-09 15:00:26 -07:00
template Python 3: use six.string_types instead of basestring 2015-09-09 09:25:23 +03:00
utils Use UnsafeProxy for lookup results too 2015-09-08 12:19:39 -04:00
vars Merge pull request #12295 from napkindrawing/patch-3 2015-09-09 21:41:13 -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