ok

Mini Shell

Direktori : /usr/lib64/python2.7/site-packages/yaml/
Upload File :
Current File : //usr/lib64/python2.7/site-packages/yaml/__init__.pyc

�
y�Mc@sddlTddlTddlTddlTddlTddlTdZyddlTeZ	Wne
k
roeZ	nXed�Z
ed�Zed�Zed�Zed�Zed�Zd	�Zd
�Zdedddddd�Zdeddddddddddd
�Zded�Zdeddddddddddddd�Zded�Zdd�Zdd�Zdeed�Zdeed�Zed�Z ed�Z!ed�Z"ed�Z#de$fd��YZ%de&fd��YZ'dS(i����(t*s3.10ccs@||�}z"x|j�r,|j�VqWWd|j�XdS(s9
    Scan a YAML stream and produce scanning tokens.
    N(tcheck_tokent	get_tokentdispose(tstreamtLoadertloader((s3/usr/lib64/python2.7/site-packages/yaml/__init__.pytscans
ccs@||�}z"x|j�r,|j�VqWWd|j�XdS(s9
    Parse a YAML stream and produce parsing events.
    N(tcheck_eventt	get_eventR(RRR((s3/usr/lib64/python2.7/site-packages/yaml/__init__.pytparses
cCs,||�}z|j�SWd|j�XdS(sj
    Parse the first YAML document in a stream
    and produce the corresponding representation tree.
    N(tget_single_nodeR(RRR((s3/usr/lib64/python2.7/site-packages/yaml/__init__.pytcompose)sccs@||�}z"x|j�r,|j�VqWWd|j�XdS(sb
    Parse all YAML documents in a stream
    and produce corresponding representation trees.
    N(t
check_nodetget_nodeR(RRR((s3/usr/lib64/python2.7/site-packages/yaml/__init__.pytcompose_all4s
cCs,||�}z|j�SWd|j�XdS(sd
    Parse the first YAML document in a stream
    and produce the corresponding Python object.
    N(tget_single_dataR(RRR((s3/usr/lib64/python2.7/site-packages/yaml/__init__.pytload@sccs@||�}z"x|j�r,|j�VqWWd|j�XdS(s\
    Parse all YAML documents in a stream
    and produce corresponding Python objects.
    N(t
check_datatget_dataR(RRR((s3/usr/lib64/python2.7/site-packages/yaml/__init__.pytload_allKs
cCs
t|t�S(s�
    Parse the first YAML document in a stream
    and produce the corresponding Python object.
    Resolve only basic YAML tags.
    (Rt
SafeLoader(R((s3/usr/lib64/python2.7/site-packages/yaml/__init__.pyt	safe_loadWscCs
t|t�S(s~
    Parse all YAML documents in a stream
    and produce corresponding Python objects.
    Resolve only basic YAML tags.
    (RR(R((s3/usr/lib64/python2.7/site-packages/yaml/__init__.pyt
safe_load_all_scCs�d}|dkr7ddlm}	|	�}|j}n||d|d|d|d|d|�}
z"x|D]}|
j|�qkWWd|
j�X|r�|�SdS(	sl
    Emit YAML parsing events into a stream.
    If stream is None, return the produced string instead.
    i����(tStringIOt	canonicaltindenttwidtht
allow_unicodet
line_breakN(tNoneRtgetvaluetemitR(teventsRtDumperRRRRRRRtdumpertevent((s3/usr/lib64/python2.7/site-packages/yaml/__init__.pyR gs	
sutf-8c
Cs�d
}
|d
krV|d
kr1ddlm}nddlm}|�}|j}
n||d|d|d|d|d|d|d	|d
|d|	d|
�
}z6|j�x|D]}|j|�q�W|j�Wd
|j�X|
r�|
�Sd
S(s�
    Serialize a sequence of representation trees into a YAML stream.
    If stream is None, return the produced string instead.
    i����(RRRRRRtencodingtversionttagstexplicit_starttexplicit_endN(RRt	cStringIORtopent	serializetcloseR(tnodesRR"RRRRRR%R(R)R&R'RRR#tnode((s3/usr/lib64/python2.7/site-packages/yaml/__init__.pyt
serialize_all}s&		

cKst|g|d||�S(sx
    Serialize a representation tree into a YAML stream.
    If stream is None, return the produced string instead.
    R"(R0(R/RR"tkwds((s3/usr/lib64/python2.7/site-packages/yaml/__init__.pyR,�scCs�d}|dkrV|
dkr1ddlm}nddlm}|�}|j}n||d|d|d|d|d|d|d	|	d
|
d|
d|d
|d|�}z6|j�x|D]}|j|�q�W|j�Wd|j�X|r�|�SdS(s
    Serialize a sequence of Python objects into a YAML stream.
    If stream is None, return the produced string instead.
    i����(Rt
default_styletdefault_flow_styleRRRRRR%R&R'R(R)N(RRR*RR+t	representR-R(t	documentsRR"R2R3RRRRRR%R(R)R&R'RRR#tdata((s3/usr/lib64/python2.7/site-packages/yaml/__init__.pytdump_all�s*
	

cKst|g|d||�S(sr
    Serialize a Python object into a YAML stream.
    If stream is None, return the produced string instead.
    R"(R7(R6RR"R1((s3/usr/lib64/python2.7/site-packages/yaml/__init__.pytdump�scKst||dt|�S(s�
    Serialize a sequence of Python objects into a YAML stream.
    Produce only basic YAML tags.
    If stream is None, return the produced string instead.
    R"(R7t
SafeDumper(R5RR1((s3/usr/lib64/python2.7/site-packages/yaml/__init__.pyt
safe_dump_all�scKst|g|dt|�S(s�
    Serialize a Python object into a YAML stream.
    Produce only basic YAML tags.
    If stream is None, return the produced string instead.
    R"(R7R9(R6RR1((s3/usr/lib64/python2.7/site-packages/yaml/__init__.pyt	safe_dump�scCs*|j|||�|j|||�dS(s�
    Add an implicit scalar detector.
    If an implicit scalar value matches the given regexp,
    the corresponding tag is assigned to the scalar.
    first is a sequence of possible initial characters or None.
    N(tadd_implicit_resolver(ttagtregexptfirstRR"((s3/usr/lib64/python2.7/site-packages/yaml/__init__.pyR<�scCs*|j|||�|j|||�dS(s�
    Add a path based resolver for the given tag.
    A path is a list of keys that forms a path
    to a node in the representation tree.
    Keys can be string values, integers, or None.
    N(tadd_path_resolver(R=tpathtkindRR"((s3/usr/lib64/python2.7/site-packages/yaml/__init__.pyR@�scCs|j||�dS(s�
    Add a constructor for the given tag.
    Constructor is a function that accepts a Loader instance
    and a node object and produces the corresponding Python object.
    N(tadd_constructor(R=tconstructorR((s3/usr/lib64/python2.7/site-packages/yaml/__init__.pyRC�scCs|j||�dS(s
    Add a multi-constructor for the given tag prefix.
    Multi-constructor is called for a node if its tag starts with tag_prefix.
    Multi-constructor accepts a Loader instance, a tag suffix,
    and a node object and produces the corresponding Python object.
    N(tadd_multi_constructor(t
tag_prefixtmulti_constructorR((s3/usr/lib64/python2.7/site-packages/yaml/__init__.pyRE�scCs|j||�dS(s�
    Add a representer for the given type.
    Representer is a function accepting a Dumper instance
    and an instance of the given data type
    and producing the corresponding representation node.
    N(tadd_representer(t	data_typetrepresenterR"((s3/usr/lib64/python2.7/site-packages/yaml/__init__.pyRHscCs|j||�dS(s�
    Add a representer for the given type.
    Multi-representer is a function accepting a Dumper instance
    and an instance of the given data type or subtype
    and producing the corresponding representation node.
    N(tadd_multi_representer(RItmulti_representerR"((s3/usr/lib64/python2.7/site-packages/yaml/__init__.pyRKstYAMLObjectMetaclasscBseZdZd�ZRS(s'
    The metaclass for YAMLObject.
    cCsntt|�j|||�d|krj|ddk	rj|jj|j|j�|jj	||j
�ndS(Ntyaml_tag(tsuperRMt__init__Rtyaml_loaderRCRNt	from_yamltyaml_dumperRHtto_yaml(tclstnametbasesR1((s3/usr/lib64/python2.7/site-packages/yaml/__init__.pyRPs(t__name__t
__module__t__doc__RP(((s3/usr/lib64/python2.7/site-packages/yaml/__init__.pyRMst
YAMLObjectcBs\eZdZeZdZeZeZ	dZdZd�Z
ee
�Z
d�Zee�ZRS(sa
    An object that can dump itself to a YAML stream
    and load itself from a YAML stream.
    cCs|j||�S(sC
        Convert a representation node to a Python object.
        (tconstruct_yaml_object(RURR/((s3/usr/lib64/python2.7/site-packages/yaml/__init__.pyRR-scCs|j|j||d|j�S(sC
        Convert a Python object to a representation node.
        t
flow_style(trepresent_yaml_objectRNtyaml_flow_style(RUR#R6((s3/usr/lib64/python2.7/site-packages/yaml/__init__.pyRT4s(N(RXRYRZRMt
__metaclass__t	__slots__RRQR"RSRRNR_RRtclassmethodRT(((s3/usr/lib64/python2.7/site-packages/yaml/__init__.pyR[s		N((terrorttokensR!R.RR#t__version__tcyamltTruet__with_libyaml__tImportErrortFalseRRR
RRRRRRRR"R R0R,R7R8R:R;R<R@RCRERHRKttypeRMtobjectR[(((s3/usr/lib64/python2.7/site-packages/yaml/__init__.pyt<module>s\









							

			

Zerion Mini Shell 1.0