mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 06:30:19 -07:00
Add a yaml constructor for unicode strings:
* Changes AnsibleConstructor so that only unicode strings are returned (no str type) * Tracks line, column numbers for strings * Adds unittests for AnsibleLoader (generic for all the yaml parsing)
This commit is contained in:
parent
eb788dd8f6
commit
c41b917162
5 changed files with 199 additions and 5 deletions
|
@ -50,3 +50,6 @@ class AnsibleMapping(AnsibleBaseYAMLObject, dict):
|
|||
''' sub class for dictionaries '''
|
||||
pass
|
||||
|
||||
class AnsibleUnicode(AnsibleBaseYAMLObject, unicode):
|
||||
''' sub class for unicode objects '''
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue