mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
508659b682
PyYAML's scanner is not written to handle Python's unicode literal strings, since they are not part of the YAML spec. With all strings loaded in the YAML context now being unicode types, this causes errors when scanning the document to construct the next node. The unicode string literal is misidentified as a plain scalar and any colons within it are interpreted as delimiting a mapping node. Since no whitespace appears after the colon, this causes scanning error. To fix it, we check for this scanning error and reset the scanner's position and check if the first char is the "u" prefix. If so, and if the following char is a quote, then we attempt to scan for a string literal instead. |
||
---|---|---|
.. | ||
acl | ||
auth | ||
beacons | ||
cache | ||
cli | ||
cloud | ||
config | ||
daemons | ||
engines | ||
files | ||
fileserver | ||
grains | ||
loader | ||
modules | ||
netapi | ||
output | ||
pillar | ||
proxy | ||
renderers | ||
returners | ||
runners | ||
sdb | ||
serializers | ||
ssh | ||
states | ||
templates | ||
tops | ||
transport | ||
utils | ||
__init__.py | ||
test_auth.py | ||
test_client.py | ||
test_conf.py | ||
test_context.py | ||
test_crypt.py | ||
test_daemons.py | ||
test_doc.py | ||
test_fileclient.py | ||
test_files.py | ||
test_log.py | ||
test_map_conf.py | ||
test_master.py | ||
test_minion.py | ||
test_payload.py | ||
test_pillar.py | ||
test_pydsl.py | ||
test_pyobjects.py | ||
test_simple.py | ||
test_spm.py | ||
test_ssh_config_roster.py | ||
test_state.py | ||
test_stateconf.py | ||
test_target.py | ||
test_template.py | ||
test_test_module_names.py | ||
test_transport.py | ||
test_version.py | ||
test_zypp_plugins.py |