ó
NvWc           @   s  d  d l  Td  d l Td  d l Td  d l Td  d l Td  d l Td Z y d  d l Te Z	 Wn e
 k
 ro e Z	 n Xe d „ Z e d „ Z e d „ Z e d „ Z e d „ Z e d „ Z d	 „  Z d
 „  Z d e d d d d d d „ Z d e d d d d d d d d d d d „ Z d e d „ Z d e d d d d d d d d d d d d d „ Z d e d „ Z d d „ Z d d „ Z d e e d „ Z d e e d „ Z e d „ Z  e d „ Z! e d „ Z" e d „ Z# d e$ f d „  ƒ  YZ% d e& f d „  ƒ  YZ' d S(   iÿÿÿÿ(   t   *s   3.11c         c   s@   | |  ƒ } z" x | j  ƒ  r, | j ƒ  Vq WWd | j ƒ  Xd S(   s9   
    Scan a YAML stream and produce scanning tokens.
    N(   t   check_tokent	   get_tokent   dispose(   t   streamt   Loadert   loader(    (    sF   /data/av2000/soap/soapenv/lib/python2.7/site-packages/yaml/__init__.pyt   scan   s
    c         c   s@   | |  ƒ } z" x | j  ƒ  r, | j ƒ  Vq WWd | j ƒ  Xd S(   s9   
    Parse a YAML stream and produce parsing events.
    N(   t   check_eventt	   get_eventR   (   R   R   R   (    (    sF   /data/av2000/soap/soapenv/lib/python2.7/site-packages/yaml/__init__.pyt   parse   s
    c         C   s,   | |  ƒ } z | j  ƒ  SWd | j ƒ  Xd S(   sj   
    Parse the first YAML document in a stream
    and produce the corresponding representation tree.
    N(   t   get_single_nodeR   (   R   R   R   (    (    sF   /data/av2000/soap/soapenv/lib/python2.7/site-packages/yaml/__init__.pyt   compose)   s    c         c   s@   | |  ƒ } z" x | j  ƒ  r, | j ƒ  Vq WWd | j ƒ  Xd S(   sb   
    Parse all YAML documents in a stream
    and produce corresponding representation trees.
    N(   t
   check_nodet   get_nodeR   (   R   R   R   (    (    sF   /data/av2000/soap/soapenv/lib/python2.7/site-packages/yaml/__init__.pyt   compose_all4   s
    c         C   s,   | |  ƒ } z | j  ƒ  SWd | j ƒ  Xd S(   sd   
    Parse the first YAML document in a stream
    and produce the corresponding Python object.
    N(   t   get_single_dataR   (   R   R   R   (    (    sF   /data/av2000/soap/soapenv/lib/python2.7/site-packages/yaml/__init__.pyt   load@   s    c         c   s@   | |  ƒ } z" x | j  ƒ  r, | j ƒ  Vq WWd | j ƒ  Xd S(   s\   
    Parse all YAML documents in a stream
    and produce corresponding Python objects.
    N(   t
   check_datat   get_dataR   (   R   R   R   (    (    sF   /data/av2000/soap/soapenv/lib/python2.7/site-packages/yaml/__init__.pyt   load_allK   s
    c         C   s   t  |  t ƒ S(   s†   
    Parse the first YAML document in a stream
    and produce the corresponding Python object.
    Resolve only basic YAML tags.
    (   R   t
   SafeLoader(   R   (    (    sF   /data/av2000/soap/soapenv/lib/python2.7/site-packages/yaml/__init__.pyt	   safe_loadW   s    c         C   s   t  |  t ƒ S(   s~   
    Parse all YAML documents in a stream
    and produce corresponding Python objects.
    Resolve only basic YAML tags.
    (   R   R   (   R   (    (    sF   /data/av2000/soap/soapenv/lib/python2.7/site-packages/yaml/__init__.pyt   safe_load_all_   s    c         C   s¢   d } | d k r7 d d l m }	 |	 ƒ  } | j } n  | | d | d | d | d | d | ƒ}
 z" x |  D] } |
 j | ƒ qk WWd |
 j ƒ  X| rž | ƒ  Sd S(	   sl   
    Emit YAML parsing events into a stream.
    If stream is None, return the produced string instead.
    iÿÿÿÿ(   t   StringIOt	   canonicalt   indentt   widtht   allow_unicodet
   line_breakN(   t   NoneR   t   getvaluet   emitR   (   t   eventsR   t   DumperR   R   R   R   R   R   R   t   dumpert   event(    (    sF   /data/av2000/soap/soapenv/lib/python2.7/site-packages/yaml/__init__.pyR    g   s    	s   utf-8c         C   só   d } | d k rV | d k r1 d d l m } n d d l m } | ƒ  } | 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   R   R   R   R   t   encodingt   versiont   tagst   explicit_startt   explicit_endN(   R   R   t	   cStringIOR   t   opent	   serializet   closeR   (   t   nodesR   R"   R   R   R   R   R   R%   R(   R)   R&   R'   R   R   R#   t   node(    (    sF   /data/av2000/soap/soapenv/lib/python2.7/site-packages/yaml/__init__.pyt   serialize_all}   s&    		
c         K   s   t  |  g | d | | S(   sx   
    Serialize a representation tree into a YAML stream.
    If stream is None, return the produced string instead.
    R"   (   R0   (   R/   R   R"   t   kwds(    (    sF   /data/av2000/soap/soapenv/lib/python2.7/site-packages/yaml/__init__.pyR,   œ   s    c         C   sÿ   d } | d k rV |
 d k r1 d d l m } n d d l m } | ƒ  } | 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û | ƒ  Sd S(   s   
    Serialize a sequence of Python objects into a YAML stream.
    If stream is None, return the produced string instead.
    iÿÿÿÿ(   R   t   default_stylet   default_flow_styleR   R   R   R   R   R%   R&   R'   R(   R)   N(   R   R   R*   R   R+   t	   representR-   R   (   t	   documentsR   R"   R2   R3   R   R   R   R   R   R%   R(   R)   R&   R'   R   R   R#   t   data(    (    sF   /data/av2000/soap/soapenv/lib/python2.7/site-packages/yaml/__init__.pyt   dump_all£   s*    
	
c         K   s   t  |  g | d | | S(   sr   
    Serialize a Python object into a YAML stream.
    If stream is None, return the produced string instead.
    R"   (   R7   (   R6   R   R"   R1   (    (    sF   /data/av2000/soap/soapenv/lib/python2.7/site-packages/yaml/__init__.pyt   dumpÅ   s    c         K   s   t  |  | d t | 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"   (   R7   t
   SafeDumper(   R5   R   R1   (    (    sF   /data/av2000/soap/soapenv/lib/python2.7/site-packages/yaml/__init__.pyt   safe_dump_allÌ   s    c         K   s   t  |  g | d t | 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"   (   R7   R9   (   R6   R   R1   (    (    sF   /data/av2000/soap/soapenv/lib/python2.7/site-packages/yaml/__init__.pyt	   safe_dumpÔ   s    c         C   s*   | j  |  | | ƒ | j  |  | | ƒ d S(   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(   t   add_implicit_resolver(   t   tagt   regexpt   firstR   R"   (    (    sF   /data/av2000/soap/soapenv/lib/python2.7/site-packages/yaml/__init__.pyR<   Ü   s    c         C   s*   | j  |  | | ƒ | j  |  | | ƒ d S(   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(   t   add_path_resolver(   R=   t   patht   kindR   R"   (    (    sF   /data/av2000/soap/soapenv/lib/python2.7/site-packages/yaml/__init__.pyR@   ç   s    c         C   s   | j  |  | ƒ d S(   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(   t   add_constructor(   R=   t   constructorR   (    (    sF   /data/av2000/soap/soapenv/lib/python2.7/site-packages/yaml/__init__.pyRC   ñ   s    c         C   s   | j  |  | ƒ d S(   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(   t   add_multi_constructor(   t
   tag_prefixt   multi_constructorR   (    (    sF   /data/av2000/soap/soapenv/lib/python2.7/site-packages/yaml/__init__.pyRE   ù   s    c         C   s   | j  |  | ƒ d S(   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(   t   add_representer(   t	   data_typet   representerR"   (    (    sF   /data/av2000/soap/soapenv/lib/python2.7/site-packages/yaml/__init__.pyRH     s    c         C   s   | j  |  | ƒ d S(   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(   t   add_multi_representer(   RI   t   multi_representerR"   (    (    sF   /data/av2000/soap/soapenv/lib/python2.7/site-packages/yaml/__init__.pyRK     s    t   YAMLObjectMetaclassc           B   s   e  Z d  Z d „  Z RS(   s'   
    The metaclass for YAMLObject.
    c         C   sn   t  t |  ƒ j | | | ƒ d | k rj | d d  k	 rj |  j j |  j |  j ƒ |  j j	 |  |  j
 ƒ n  d  S(   Nt   yaml_tag(   t   superRM   t   __init__R   t   yaml_loaderRC   RN   t	   from_yamlt   yaml_dumperRH   t   to_yaml(   t   clst   namet   basesR1   (    (    sF   /data/av2000/soap/soapenv/lib/python2.7/site-packages/yaml/__init__.pyRP     s    (   t   __name__t
   __module__t   __doc__RP   (    (    (    sF   /data/av2000/soap/soapenv/lib/python2.7/site-packages/yaml/__init__.pyRM     s   t
   YAMLObjectc           B   s\   e  Z d  Z e Z d Z e Z e Z	 d Z d Z d „  Z e e ƒ Z d „  Z e e ƒ Z RS(   sa   
    An object that can dump itself to a YAML stream
    and load itself from a YAML stream.
    c         C   s   | j  | |  ƒ S(   sC   
        Convert a representation node to a Python object.
        (   t   construct_yaml_object(   RU   R   R/   (    (    sF   /data/av2000/soap/soapenv/lib/python2.7/site-packages/yaml/__init__.pyRR   -  s    c         C   s   | j  |  j | |  d |  j ƒS(   sC   
        Convert a Python object to a representation node.
        t
   flow_style(   t   represent_yaml_objectRN   t   yaml_flow_style(   RU   R#   R6   (    (    sF   /data/av2000/soap/soapenv/lib/python2.7/site-packages/yaml/__init__.pyRT   4  s    (    N(   RX   RY   RZ   RM   t   __metaclass__t	   __slots__R   RQ   R"   RS   R   RN   R_   RR   t   classmethodRT   (    (    (    sF   /data/av2000/soap/soapenv/lib/python2.7/site-packages/yaml/__init__.pyR[     s   		N((   t   errort   tokensR!   R.   R   R#   t   __version__t   cyamlt   Truet   __with_libyaml__t   ImportErrort   FalseR   R   R
   R   R   R   R   R   R   R   R"   R    R0   R,   R7   R8   R:   R;   R<   R@   RC   RE   RH   RK   t   typeRM   t   objectR[   (    (    (    sF   /data/av2000/soap/soapenv/lib/python2.7/site-packages/yaml/__init__.pyt   <module>   s\   








							

			
