????

Your IP : 216.73.216.152


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

�
~�\]c@saddlTddlTddlTddlTddlTddlTdZyddlTeZ	Wne
k
roeZ	nXied6Zd%d�Zdefd��YZd�Zed�Zed�Zed	�Zed
�Zd%d�Zd%d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd%ed%d%d%d%d%d�Z d%ed%d%d%d%d%dd%d%d%d%d�Z!d%ed�Z"d%ed%ed%d%d%d%d%dd%d%d%d%ed�Z#d%ed�Z$d%d�Z%d%d�Z&d%eed�Z'd%eed�Z(ed�Z)ed�Z*ed�Z+ed �Z,d!e-fd"��YZ.d#e/fd$��YZ0d%S(&i����(t*s5.1.2tYAMLLoadWarningcCsW|dkrtSt|�tkrSx.|D]#}|tkr)||t|<q)q)WndS(N(tNonet_warnings_enabledttypetdict(tsettingstkey((s//tmp/pip-install-ewDPok/pyyaml/yaml/__init__.pytwarningss
cBseZRS((t__name__t
__module__(((s//tmp/pip-install-ewDPok/pyyaml/yaml/__init__.pyR(scCsDtdtkrdSddl}d|}|j|tdd�dS(NRi����s�calling yaml.%s() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.t
stackleveli(RtFalseRtwarnR(tmethodRtmessage((s//tmp/pip-install-ewDPok/pyyaml/yaml/__init__.pytload_warning+sccs@||�}z"x|j�r,|j�VqWWd|j�XdS(s9
    Scan a YAML stream and produce scanning tokens.
    N(tcheck_tokent	get_tokentdispose(tstreamtLoadertloader((s//tmp/pip-install-ewDPok/pyyaml/yaml/__init__.pytscan:s
ccs@||�}z"x|j�r,|j�VqWWd|j�XdS(s9
    Parse a YAML stream and produce parsing events.
    N(tcheck_eventt	get_eventR(RRR((s//tmp/pip-install-ewDPok/pyyaml/yaml/__init__.pytparseEs
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((s//tmp/pip-install-ewDPok/pyyaml/yaml/__init__.pytcomposePs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((s//tmp/pip-install-ewDPok/pyyaml/yaml/__init__.pytcompose_all[s
cCsK|dkrtd�t}n||�}z|j�SWd|j�XdS(sd
    Parse the first YAML document in a stream
    and produce the corresponding Python object.
    tloadN(RRt
FullLoadertget_single_dataR(RRR((s//tmp/pip-install-ewDPok/pyyaml/yaml/__init__.pyR gs
	ccs_|dkrtd�t}n||�}z"x|j�rK|j�Vq1WWd|j�XdS(s\
    Parse all YAML documents in a stream
    and produce corresponding Python objects.
    tload_allN(RRR!t
check_datatget_dataR(RRR((s//tmp/pip-install-ewDPok/pyyaml/yaml/__init__.pyR#vs
	cCs
t|t�S(s�
    Parse the first YAML document in a stream
    and produce the corresponding Python object.

    Resolve all tags except those known to be
    unsafe on untrusted input.
    (R R!(R((s//tmp/pip-install-ewDPok/pyyaml/yaml/__init__.pyt	full_load�scCs
t|t�S(s�
    Parse all YAML documents in a stream
    and produce corresponding Python objects.

    Resolve all tags except those known to be
    unsafe on untrusted input.
    (R#R!(R((s//tmp/pip-install-ewDPok/pyyaml/yaml/__init__.pyt
full_load_all�scCs
t|t�S(s�
    Parse the first YAML document in a stream
    and produce the corresponding Python object.

    Resolve only basic YAML tags. This is known
    to be safe for untrusted input.
    (R t
SafeLoader(R((s//tmp/pip-install-ewDPok/pyyaml/yaml/__init__.pyt	safe_load�scCs
t|t�S(s�
    Parse all YAML documents in a stream
    and produce corresponding Python objects.

    Resolve only basic YAML tags. This is known
    to be safe for untrusted input.
    (R#R((R((s//tmp/pip-install-ewDPok/pyyaml/yaml/__init__.pyt
safe_load_all�scCs
t|t�S(s�
    Parse the first YAML document in a stream
    and produce the corresponding Python object.

    Resolve all tags, even those known to be
    unsafe on untrusted input.
    (R tUnsafeLoader(R((s//tmp/pip-install-ewDPok/pyyaml/yaml/__init__.pytunsafe_load�scCs
t|t�S(s�
    Parse all YAML documents in a stream
    and produce corresponding Python objects.

    Resolve all tags, even those known to be
    unsafe on untrusted input.
    (R#R+(R((s//tmp/pip-install-ewDPok/pyyaml/yaml/__init__.pytunsafe_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(RR.tgetvaluetemitR(teventsRtDumperR/R0R1R2R3R4R.tdumpertevent((s//tmp/pip-install-ewDPok/pyyaml/yaml/__init__.pyR5�s	
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����(R.R/R0R1R2R3tencodingtversionttagstexplicit_starttexplicit_endN(RR.t	cStringIOR4topent	serializetcloseR(tnodesRR7R/R0R1R2R3R:R=R>R;R<R4R.R8tnode((s//tmp/pip-install-ewDPok/pyyaml/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.
    R7(RE(RDRR7tkwds((s//tmp/pip-install-ewDPok/pyyaml/yaml/__init__.pyRA�scCsd}|dkrV|
dkr1ddlm}nddlm}|�}|j}n||d|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����(R.t
default_styletdefault_flow_styleR/R0R1R2R3R:R;R<R=R>t	sort_keysN(RR.R?R4R@t	representRBR(t	documentsRR7RGRHR/R0R1R2R3R:R=R>R;R<RIR4R.R8tdata((s//tmp/pip-install-ewDPok/pyyaml/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.
    R7(RM(RLRR7RF((s//tmp/pip-install-ewDPok/pyyaml/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.
    R7(RMt
SafeDumper(RKRRF((s//tmp/pip-install-ewDPok/pyyaml/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.
    R7(RMRO(RLRRF((s//tmp/pip-install-ewDPok/pyyaml/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(ttagtregexptfirstRR7((s//tmp/pip-install-ewDPok/pyyaml/yaml/__init__.pyRR7scCs*|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(RStpathtkindRR7((s//tmp/pip-install-ewDPok/pyyaml/yaml/__init__.pyRVBscCs|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(RStconstructorR((s//tmp/pip-install-ewDPok/pyyaml/yaml/__init__.pyRYLscCs|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((s//tmp/pip-install-ewDPok/pyyaml/yaml/__init__.pyR[TscCs|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_typetrepresenterR7((s//tmp/pip-install-ewDPok/pyyaml/yaml/__init__.pyR^]scCs|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(R_tmulti_representerR7((s//tmp/pip-install-ewDPok/pyyaml/yaml/__init__.pyRafstYAMLObjectMetaclasscBseZdZd�ZRS(s'
    The metaclass for YAMLObject.
    cCsntt|�j|||�d|krj|ddk	rj|jj|j|j�|jj	||j
�ndS(Ntyaml_tag(tsuperRct__init__Rtyaml_loaderRYRdt	from_yamltyaml_dumperR^tto_yaml(tclstnametbasesRF((s//tmp/pip-install-ewDPok/pyyaml/yaml/__init__.pyRfss(R	R
t__doc__Rf(((s//tmp/pip-install-ewDPok/pyyaml/yaml/__init__.pyRcost
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(RkRRD((s//tmp/pip-install-ewDPok/pyyaml/yaml/__init__.pyRh�scCs|j|j||d|j�S(sC
        Convert a Python object to a representation node.
        t
flow_style(trepresent_yaml_objectRdtyaml_flow_style(RkR8RL((s//tmp/pip-install-ewDPok/pyyaml/yaml/__init__.pyRj�s(N(R	R
RnRct
__metaclass__t	__slots__RRgR7RiRRdRsRhtclassmethodRj(((s//tmp/pip-install-ewDPok/pyyaml/yaml/__init__.pyRoys		N(1terrorttokensR6RCRR8t__version__tcyamltTruet__with_libyaml__tImportErrorRRRRtRuntimeWarningRRRRRRRR R#R&R'R)R*R,R-R7R5RERARMRNRPRQRRRVRYR[R^RaRRctobjectRo(((s//tmp/pip-install-ewDPok/pyyaml/yaml/__init__.pyt<module>sn