%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/utils/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/utils/yamldumper.pyo

�
���^c@@stdZddlmZmZmZy$ddlmZddlmZ	Wn1e
k
ryddlmZddlm	Z	nXddlZddlZddlZ
ddlmZydd	lmZeZWne
k
r�dZeZnXd
ddd
ddgZdefd��YZdefd��YZde	fd��YZdeefd��YZd�Zejee�ejee�ejejejjj �ejejejjj �eje
j!j"j#ejjj �eje
j!j"j#ejjj �ejdej$�ejdej$�erOejee�ejee�nd�Z%dd�Z&dd�Z'dS(u6
    salt.utils.yamldumper
    ~~~~~~~~~~~~~~~~~~~~~

i(tabsolute_importtprint_functiontunicode_literals(tCDumper(tCSafeDumper(tDumper(t
SafeDumperN(tOrderedDict(todictu
OrderedDumperuSafeOrderedDumperuIndentedSafeOrderedDumperu
get_dumperudumpu	safe_dumptIndentMixincB@seZdZeed�ZRS(u�
    Mixin that improves YAML dumped list readability
    by indenting them by two spaces,
    instead of being flush with the key they are under.
    cC@stt|�j|t�S(N(tsuperR	tincrease_indenttFalse(tselftflowt
indentless((s9/usr/lib/python2.7/site-packages/salt/utils/yamldumper.pyR)s(t__name__t
__module__t__doc__RR(((s9/usr/lib/python2.7/site-packages/salt/utils/yamldumper.pyR	"st
OrderedDumpercB@seZdZRS(uN
    A YAML dumper that represents python OrderedDict as simple YAML map.
    (RRR(((s9/usr/lib/python2.7/site-packages/salt/utils/yamldumper.pyR-stSafeOrderedDumpercB@seZdZRS(uS
    A YAML safe dumper that represents python OrderedDict as simple YAML map.
    (RRR(((s9/usr/lib/python2.7/site-packages/salt/utils/yamldumper.pyR3stIndentedSafeOrderedDumpercB@seZdZRS(u}
    A YAML safe dumper that represents python OrderedDict as simple YAML map,
    and also indents lists by two spaces.
    (RRR(((s9/usr/lib/python2.7/site-packages/salt/utils/yamldumper.pyR9scC@s|jt|j���S(N(trepresent_dicttlisttitems(tdumpertdata((s9/usr/lib/python2.7/site-packages/salt/utils/yamldumper.pytrepresent_ordereddictAsutag:yaml.org,2002:timestampcC@s"itd6td6td6j|�S(Nu
OrderedDumperuSafeOrderedDumperuIndentedSafeOrderedDumper(RRRtget(tdumper_name((s9/usr/lib/python2.7/site-packages/salt/utils/yamldumper.pyt
get_dumperes

cK@s<d|krt|d<n|jdd�tj|||�S(u�
    .. versionadded:: 2018.3.0

    Helper that wraps yaml.dump and ensures that we encode unicode strings
    unless explicitly told not to.
    u
allow_unicodeudefault_flow_styleN(tTruet
setdefaulttNonetyamltdump(Rtstreamtkwargs((s9/usr/lib/python2.7/site-packages/salt/utils/yamldumper.pyR#ms
cK@sBd|krt|d<n|jdd�tj||dt|�S(u�
    Use a custom dumper to ensure that defaultdict and OrderedDict are
    represented properly. Ensure that unicode strings are encoded unless
    explicitly told not to.
    u
allow_unicodeudefault_flow_styleRN(RR R!R"R#R(RR$R%((s9/usr/lib/python2.7/site-packages/salt/utils/yamldumper.pyt	safe_dumpzs
((Rt
__future__RRRR"RRRRtImportErrortcollectionstsalt.utils.contexttsalttsalt.utils.odictRtioflo.aid.odictingRRt	HAS_IOFLOR!Rt__all__R	RRRRtadd_representertdefaultdicttrepresentertSafeRepresenterRtutilstcontexttNamespacedDictWrappertrepresent_scalarRR#R&(((s9/usr/lib/python2.7/site-packages/salt/utils/yamldumper.pyt<module>sd



		

	

Zerion Mini Shell 1.0