%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/salt/renderers/
Upload File :
Create Path :
Current File : //usr/lib/python2.7/site-packages/salt/renderers/yaml.pyc

�
���^c@@sdZddlmZmZmZddlZddlZddlmZddl	m
Z
ddlmZddl
ZddljjZddljjZddlmZddlmZdd	lmZdd
lmZeje�Zidd6Z d
�Z!dddd�Z"dS(uZ
YAML Renderer for Salt

For YAML usage information see :ref:`Understanding YAML <yaml>`.
i(tabsolute_importtprint_functiontunicode_literalsN(tScannerError(tParserError(tConstructorError(tOrderedDict(tSaltRenderError(tsix(tstring_typesuIllegal tab characteru0found character '\t' that cannot start any tokencC@s
d�}|S(u-
    Return the ordered dict yaml loader
    cW@s1tjd�rt}nt}|jdt|�S(Nuuse_yamlloader_oldt	dictclass(t__opts__tgettyamlloader_oldtyamlloader_newtSaltYamlSafeLoaderR(targst
yamlloader((s7/usr/lib/python2.7/site-packages/salt/renderers/yaml.pytyaml_loader&s	((targlineR((s7/usr/lib/python2.7/site-packages/salt/renderers/yaml.pytget_yaml_loader"s	ubaseuc
@s�tjd�r%tjd�t}nt}t|t�sI|j�}nt	j
dt��*}y|j|dt
|��}Wnwtk
r�}tj|j|j�}	|jjd}
t|	|
|jj��n%ttfk
r�}t|��nXt|�dkrEx9|D].}tjd|jtjjj|�|�qWn|sTi}ntjd|��fd	���|�|SWd
QXd
S(u�
    Accepts YAML as a string or as a file object and runs it through the YAML
    parser.

    :rtype: A Python data structure
    uuse_yamlloader_oldu]Using the old YAML Loader for rendering, consider disabling this and using the tojson filter.trecordtLoaderiiu%s found in %s saltenv=%suResults of YAML rendering: 
%sc@s�t|t�rZxutj|�D]4\}}t|t�rItd��n�|�qWn-t|t�r�x|D]}�|�qpWndS(u
            PyYAML will for some reason allow improper YAML to be formed into
            an unhashable dict (that is, one with a dict as a key). This
            function will recursively go through and check the keys to make
            sure they're not dicts.
            u)Invalid YAML, possible double curly-braceN(t
isinstancetdictRt	iteritemsRtlist(tdatatkeytvaluetitem(t_validate_data(s7/usr/lib/python2.7/site-packages/salt/renderers/yaml.pyRRs
N(RRtlogtwarningR
RRR	treadtwarningstcatch_warningstTruetloadRRt
_ERROR_MAPtproblemtproblem_marktlineRtbufferRRtlentmessagetsalttutilsturltcreatetdebug(t	yaml_datatsaltenvtslsRtkwsRt	warn_listRtexcterr_typetline_numR((Rs7/usr/lib/python2.7/site-packages/salt/renderers/yaml.pytrender/s4
	
&	
(#t__doc__t
__future__RRRtloggingR#tyaml.scannerRtyaml.parserRtyaml.constructorRtsalt.utils.urlR.tsalt.utils.yamlloaderR/RRtsalt.utils.yamlloader_oldR
tsalt.utils.odictRtsalt.exceptionsRtsalt.extRtsalt.ext.sixR	t	getLoggert__name__R R'RR;(((s7/usr/lib/python2.7/site-packages/salt/renderers/yaml.pyt<module>s$
	

Zerion Mini Shell 1.0