You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/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.)
9 years ago
..
cli Vault missing DataLoader for pwd file #12293 9 years ago
compat Making the switch to v2 9 years ago
config Making the switch to v2 9 years ago
errors Making the switch to v2 9 years ago
executor Fix indent on line in playbook executor 9 years ago
galaxy Python 3: avoid iteritems() in a template 9 years ago
inventory * Make sure we don't sometimes get byte strings instead of unicode strings 9 years ago
module_utils Merge pull request #11818 from Java1Guy/module_utils_ec2_for_ecs 9 years ago
modules update submodule refs for documentation formatting 9 years ago
new_inventory Making the switch to v2 9 years ago
parsing Python 3: use the right PyYAML SafeRepresenter for unicode 9 years ago
playbook Compare include params against deprecated param names too 9 years ago
plugins Fix order of loading of modules. 9 years ago
template Python 3: use six.string_types instead of basestring 9 years ago
utils Use UnsafeProxy for lookup results too 9 years ago
vars Merge pull request #12295 from napkindrawing/patch-3 9 years ago
__init__.py Re-adding submodules after moving things around 9 years ago
constants.py actually implemented flags correctly for all priv escalation methods 9 years ago
test-requirements.txt Making the switch to v2 9 years ago