Ñò
ïžòKc           @   sÅ  d  Z  d d k Z d d k Z d d k Z e i d e d ƒ [ d Z d e f d „  ƒ  YZ d Z	 d	 Z
 d
 Z d Z e i d ƒ Z e i d ƒ Z e i d ƒ Z e i d e d ƒ Z e i d e d ƒ Z e i d ƒ Z e i e	 d ƒ Z e i d ƒ Z e i e	 d e d e
 d e
 d e d ƒ Z e i d e ƒ Z e i e
 d ƒ Z e i d e d e i d e i ƒ Z e i d  ƒ Z e i e
 d! ƒ Z e i d" e d# ƒ Z e i e ƒ Z e i d$ ƒ Z e i d% ƒ Z  d& e d' Z! d( Z" d) e	 e" d* d' e	 e! d+ Z# e i d, e	 d e d- e	 e# d. e
 ƒ Z$ e i d/ e	 d0 e
 d e
 d1 e d' d2 e	 d3 e
 d e
 d4 e	 d5 e
 d e
 d6 e
 d7 ƒ Z% e i d8 e d' e
 ƒ Z& e i e
 d7 ƒ Z' e i d9 ƒ Z( e i d: ƒ Z) e i d; ƒ Z* e i+ d< d= ƒ Z, d> Z- e i e- d ƒ Z. e i d? e- d@ e- dA ƒ Z/ e i dB e- dC ƒ Z0 dD f  dE „  ƒ  YZ1 dF e1 f dG „  ƒ  YZ2 e3 dH „ Z4 e5 dI j o e4 ƒ  n d S(J   s8   A parser for XML, using the derived class as static DTD.iÿÿÿÿNs4   The xmllib module is obsolete.  Use xml.sax instead.i   s   0.3t   Errorc           B   s   e  Z RS(    (   t   __name__t
   __module__(    (    (    s   scripts/common/Lib/xmllib.pyR       s   s   [ 	
]+s   [ 	
]*s   [a-zA-Z_:][-a-zA-Z0-9._:]*s   (?:'[^']*'|"[^"]*")s   [^	
 -~ -ÿ]s   []&<]t   &s   &(s(   |#[0-9]+|#x[0-9a-fA-F]+)[^-a-zA-Z0-9._:]s
   &(?P<name>s   )[^-a-zA-Z0-9._:]s2   &#(?P<char>[0-9]+[^0-9]|x[0-9a-fA-F]+[^0-9a-fA-F])t   $s   
s	   (?P<name>s   )(t   =s
   (?P<value>s    |[-a-zA-Z0-9.:+*%?!\(\)_#=~]+))?t   <s   (?P<slash>/?)>s   <(?P<tagname>s   )(?P<attrs>(?:s   )*)s   </t   >s
   (?:[^>'"]|s   )*>s   <!\[CDATA\[s   \]\]>s   (?P<%s>t   )sV   (?P<%s>"[-'\(\)+,./:=?;!*#@$_%% 
a-zA-Z0-9]*"|'[-\(\)+,./:=?;!*#@$_%% 
a-zA-Z0-9]*')s   (?:SYSTEM|PUBLICt   pubidt   syslits	   <!DOCTYPEs   )(?:s   )?s   <\?xmlt   versions   (?P<version>s   (?:t   encodingsF   (?P<encoding>'[A-Za-z][-A-Za-z0-9._]*'|"[A-Za-z][-A-Za-z0-9._]*"))?(?:t
   standalones+   (?P<standalone>'(?:yes|no)'|"(?:yes|no)"))?s   \?>s   <\?(?P<proc>s   <!--s   -->s   --s    
	s       s   [a-zA-Z_][-a-zA-Z0-9._]*s   (?:(?P<prefix>s   ):)?(?P<local>s   )$s   xmlns(?::(?P<ncname>s   ))?$t	   XMLParserc           B   s´  e  Z h  Z h  Z d  Z d  Z d  Z d  Z d Z d „  Z	 d „  Z
 d „  Z d „  Z d „  Z d „  Z d „  Z d	 „  Z d
 „  Z d d „ Z d „  Z d „  Z d „  Z d „  Z d „  Z h d2 d 6d2 d 6d2 d 6Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z  d „  Z! d „  Z" d „  Z# d „  Z$ h d d  6d! d" 6d# d$ 6d% d& 6d' d( 6Z% d) „  Z& d* „  Z' d+ „  Z( d, „  Z) d- „  Z* d. „  Z+ d/ „  Z, d0 „  Z- d1 „  Z. RS(3   i    i   c         K   s­   d |  _  d | j o | d |  _ n d | j o | d |  _ n d | j o | d |  _ n d | j o | d |  _ n d | j o | d |  _ n |  i ƒ  d  S(   Ni    t   accept_unquoted_attributest   accept_missing_endtag_namet   map_caset   accept_utf8t   translate_attribute_references(   t   _XMLParser__fixedt&   _XMLParser__accept_unquoted_attributest&   _XMLParser__accept_missing_endtag_namet   _XMLParser__map_caset   _XMLParser__accept_utf8t*   _XMLParser__translate_attribute_referencest   reset(   t   selft   kw(    (    s   scripts/common/Lib/xmllib.pyt   __init__g   s    	c         C   s6   d |  _  h  |  _ |  i |  i ƒ |  i |  i ƒ d  S(   Ni   (   R   t   elementst   _XMLParser__fixdictt   __dict__t   _XMLParser__fixclasst	   __class__(   R   (    (    s   scripts/common/Lib/xmllib.pyt   __fixelementsu   s    		c         C   s5   |  i  | i ƒ x | i D] } |  i | ƒ q Wd  S(   N(   R   R    t	   __bases__R!   (   R   t   klt   k(    (    s   scripts/common/Lib/xmllib.pyt
   __fixclass{   s    
 c         C   sé   xâ | i  ƒ  D]Ô } | d  d j oV | d } |  i i | d ƒ \ } } | d  j o  t |  | ƒ | f |  i | <qá q | d  d j oV | d } |  i i | d ƒ \ } } | d  j o  | t |  | ƒ f |  i | <qá q q Wd  S(   Ni   t   start_i   t   end_(   NN(   NN(   t   keysR   t   gett   Nonet   getattr(   R   t   dictt   keyt   tagt   startt   end(    (    s   scripts/common/Lib/xmllib.pyt	   __fixdict€   s     
$
c         C   s†   d |  _  g  |  _ d |  _ d |  _ d |  _ d |  _ d  |  _ d |  _ d |  _	 h d  d 6|  _
 |  i t i j o |  i ƒ  n d  S(   Nt    i    i   t   xml(   t   rawdatat   stackt
   nomoretagst   literalt   linenot   _XMLParser__at_startR,   t   _XMLParser__seen_doctypet   _XMLParser__seen_starttagt   _XMLParser__use_namespacest   _XMLParser__namespacesR   R   t   _XMLParser__fixelements(   R   (    (    s   scripts/common/Lib/xmllib.pyR   Ž   s    									c         C   s   d |  _  |  _ d  S(   Ni   (   R8   R9   (   R   (    (    s   scripts/common/Lib/xmllib.pyt   setnomoretagsŸ   s    c         G   s   d |  _  d  S(   Ni   (   R9   (   R   t   args(    (    s   scripts/common/Lib/xmllib.pyt
   setliteral£   s    c         C   s!   |  i  | |  _  |  i d ƒ d  S(   Ni    (   R6   t   goahead(   R   t   data(    (    s   scripts/common/Lib/xmllib.pyt   feedª   s    c         C   s.   |  i  d ƒ |  i o d |  _ |  ` n d  S(   Ni   i    (   RD   R   R   (   R   (    (    s   scripts/common/Lib/xmllib.pyt   close¯   s    
	c         C   s*  |  i  p | Sd } xt i | | ƒ } | d  j o | S| i d ƒ } t i | | ƒ } | d  j o |  i d ƒ | d } q n | i d ƒ } | i	 d ƒ } d } | d d j ox | d d j o t
 t | d d ƒ ƒ } n t
 t | d ƒ ƒ } | | d d j o |  i d	 ƒ | d } qìn¸ | o} | |  i j o |  i | } d } qì| | d d j o |  i d ƒ | d } q qì|  i d
 | ƒ d | d } n4 | | d d j o |  i d ƒ | d } q n | |  | | | } | o
 | } q | t | ƒ } q d  S(   Ni    s	   bogus `&'i   t   #t   xi   i   t   ;s    `;' missing after char references"   reference to unknown entity `&%s;'R   (   R   t   ampt   searchR,   R1   t   reft   matcht   syntax_errorR2   t   groupt   chrt   intt
   entitydefst   len(   R   RE   t   allt   it   rest   st   strt   rescan(    (    s   scripts/common/Lib/xmllib.pyt   translate_references·   sR    





c         C   s4   h  } x' |  i  D] \ } } } | i | ƒ q W| S(   N(   R7   t   update(   R   t   nsdictt   tt   dt   nst(    (    s   scripts/common/Lib/xmllib.pyt   getnamespaceé   s
    
 c         C   s;
  |  i  } d } t | ƒ } xç| | j  oÙ| d j o d |  _ n |  i o> | | | !} |  i | ƒ |  i | i d ƒ |  _ | } Pn t i | | ƒ } | o | i	 d ƒ } n | } | | j  oÏ | | | !} |  i o' t
 i | ƒ d  j o |  i d ƒ n d |  _ |  i o' t
 i | ƒ d  j o |  i d ƒ n |  i o! t i | ƒ o |  i d ƒ n |  i | ƒ |  i | i d ƒ |  _ n | } | | j o Pn | | d j ott i | | ƒ o¢ |  i oA | | } |  i | ƒ |  i | i d ƒ |  _ | d } q n |  i | ƒ } | d j  o Pn d |  _ |  i | | | !i d ƒ |  _ | } q n t i | | ƒ oN |  i | ƒ } | d j  o Pn |  i | | | !i d ƒ |  _ | } q n t i | | ƒ o™ |  i oA | | } |  i | ƒ |  i | i d ƒ |  _ | d } q n |  i | ƒ } | d j  o Pn |  i | | | !i d ƒ |  _ | } q n t i | | ƒ oN |  i | ƒ } | d j  o Pn |  i | | | !i d ƒ |  _ | } q n t i | | ƒ } | o³ |  i p |  i d ƒ n | i d	 d
 d ƒ \ }	 }
 } |	 d d !d j o t d ƒ ‚ n |
 o |
 d d !}
 n | o | d d !} n |  i |
 | ƒ | i d ƒ } q n t  i | | ƒ } | oN |  i! | ƒ } | d j  o Pn |  i | | | !i d ƒ |  _ | } q n t" i | | ƒ } | o|  i oA | | } |  i | ƒ |  i | i d ƒ |  _ | d } q n |  i# o |  i d ƒ n |  i o |  i d ƒ n |  i$ | ƒ } | d j  o Pn | i d ƒ |  _# |  i% o |  i# i& ƒ  |  _# n |  i | | | !i d ƒ |  _ | } q qÿnÈ| | d j o|  i o( | | } |  i | ƒ | d } q n t' i | | ƒ } | d  j	 o� | i d ƒ } | | d d j o |  i d ƒ | d } n |  i p |  i d ƒ n |  i( | i d ƒ d  ƒ |  i | i d ƒ i d ƒ |  _ q n t) i | | ƒ } | d  j	 oú | i d ƒ } | | d d j o |  i d ƒ | d } n | i d ƒ } |  i% o | i& ƒ  } n | |  i* j oL | | i	 d ƒ  |  i* | | | |  _  } t | ƒ } | i	 d ƒ } n |  i+ | ƒ |  i | i d ƒ i d ƒ |  _ q qÿn¬ | | d j oŽ |  i o( | | } |  i | ƒ | d } q n | | d j  o Pn t, i | | ƒ o |  i d ƒ n |  i | | ƒ | d } q n t d ƒ ‚ Pq W| d j o d |  _ n | o™ | | j  oŒ | | } |  i d | ƒ |  i o! t i | ƒ o |  i d ƒ n |  i | ƒ |  i | i d ƒ |  _ | | d |  _  |  i- | ƒ S| | |  _  | od |  i p |  i d ƒ n |  i o; |  i d ƒ x+ |  i o |  i. |  i d d ƒ q
Wq7
n d  S(   Ni    s   
s   illegal data at start of files   data not in contents   illegal character in contentR   i   s,   <?xml?> declaration not at start of documentR   R   R   iÿÿÿÿs   1.0s   only XML version 1.0 supporteds   multiple DOCTYPE elementss$   DOCTYPE not at beginning of documentt   nameR   RJ   s   `;' missing in charreft   chars   `;' missing in entityreft   ]i   s   bogus `]]>'s   neither < nor & ??s
   bogus `%s's   no elements in files   missing end tags(/   R6   RT   R;   R8   t   handle_dataR:   t   countt   interestingRL   R1   t   spaceRN   R,   RO   R7   R   t   illegalt   starttagopenR9   t   parse_starttagR=   t
   endtagopent   parse_endtagt   commentopent   parse_commentt	   cdataopent   parse_cdatat   xmldeclRP   R    t
   handle_xmlR2   t   procopent
   parse_proct   doctypeR<   t   parse_doctypeR   t   lowert   charreft   handle_charreft	   entityrefRS   t   unknown_entityreft
   cdatacloseRD   t   finish_endtag(   R   R2   R6   RV   t   nRE   RW   t   jR&   R   R   R   Rb   (    (    s   scripts/common/Lib/xmllib.pyRD   ò   st   	 
 	! 


 	   


    
	    




 
 



"
-"






 
c         C   s)  |  i  } | | | d !d j o t d ƒ ‚ n t i | | d ƒ } | d  j o d St i | | d | i d ƒ ƒ o |  i d ƒ n | | i d ƒ d d j o |  i d	 ƒ n |  i o4 t	 i | | d | i d ƒ ƒ o |  i d
 ƒ n |  i
 | | d | i d ƒ !ƒ | i d ƒ S(   Ni   s   <!--s!   unexpected call to handle_commentiÿÿÿÿi    s   `--' inside commenti   t   -s"   comment cannot end in three dashess   illegal character in comment(   R6   R    t   commentcloseRL   R,   t
   doubledashR1   RO   R   Ri   t   handle_commentR2   (   R   RV   R6   RW   (    (    s   scripts/common/Lib/xmllib.pyRo   ª  s    	##!c      	   C   s¬  |  i  } t | ƒ } | i d ƒ } |  i o | i ƒ  } n | i d d ƒ \ } } | d  j	 o& | d d !} d i | i ƒ  ƒ } n | d  j	 o | d d !} n | i d ƒ } } | | j o d S| | d j o^d }	 | d } d }
 } xA| | j  o/| | } | o | d	 j o |
 }
 nø |
 o | d
 j o | } nØ | p |
 o nÆ |	 d j od | d j oW t	 i
 | | d ƒ } | d  j o d S|  i | | | | | d | !ƒ | i d ƒ S| d j o |	 d }	 n: | d j o, |	 d }	 |	 d j  o |  i d ƒ q(n | d } qú Wn t i
 | | ƒ } | d  j o d St	 i
 | | ƒ d  j o |  i d ƒ n |  i | | | d  ƒ | i d ƒ S(   NRb   R	   R
   i   iÿÿÿÿt    i    t   [t   "t   'Rd   R   R   s   bogus `>' in DOCTYPEs   garbage in DOCTYPE(   R6   RT   RP   R   Rx   R,   t   joint   splitR2   t
   endbracketRN   t   handle_doctypeRO   t   endbracketfind(   R   RW   R6   R   Rb   R	   R
   R€   R&   t   levelt   dqt   sqt   c(    (    s   scripts/common/Lib/xmllib.pyRw   ¼  s^    	
 

 
!
c         C   sá   |  i  } | | | d !d j o t d ƒ ‚ n t i | | d ƒ } | d  j o d S|  i o4 t i | | d | i d ƒ ƒ o |  i d ƒ n |  i	 p |  i d ƒ n |  i
 | | d | i d ƒ !ƒ | i d ƒ S(   Ni	   s	   <![CDATA[s   unexpected call to parse_cdataiÿÿÿÿi    s   illegal character in CDATAs   CDATA not in content(   R6   R    R}   RL   R,   R   Ri   R1   RO   R7   t   handle_cdataR2   (   R   RV   R6   RW   (    (    s   scripts/common/Lib/xmllib.pyRq   ì  s    	#
!t   nst   srct   prefixc         C   s€  |  i  } t i | | ƒ } | d  j o d S| i d ƒ } |  i o+ t i | | d | ƒ o |  i d ƒ n t i	 | | d ƒ } | d  j o t
 d ƒ ‚ n | i d ƒ } | i d ƒ } |  i o | i ƒ  } n | d j oN|  i d ƒ d |  _ |  i p
 |  i o |  i d ƒ n |  i | | | ƒ \ } }	 } |	 o |  i d	 ƒ n x9 | i ƒ  D]+ }
 |
 |  i j o |  i d
 |
 ƒ qhqhWd | j p d | j o |  i d ƒ n | i d ƒ } t i	 | ƒ d  j o |  i d ƒ | i d ƒ S| |  i j o |  i d ƒ n | d |  i | <n< | i ƒ  d j o |  i d ƒ n |  i | | | | !ƒ | i d ƒ S(   Niÿÿÿÿi    i   s+   illegal character in processing instructions   unexpected call to parse_procs   xml:namespaces#   old-fashioned namespace declarations.   xml:namespace declaration too late in documents2   namespace declaration inside namespace declarations+   unknown attribute `%s' in xml:namespace tagR“   R•   s)   xml:namespace without required attributess"   xml:namespace illegal prefix values   xml:namespace prefix not uniqueR5   s*   illegal processing instruction target name(   R6   t	   proccloseRL   R,   R1   R   Ri   RO   t   tagfindRN   R    R2   RP   R   Rx   R>   R<   R=   t   parse_attributesR*   t$   _XMLParser__xml_namespace_attributesR+   t   ncnameR?   t   handle_proc(   R   RV   R6   R2   R€   RW   R&   Rb   t   attrdictt	   namespacet   attrnameR•   (    (    s   scripts/common/Lib/xmllib.pyRu   ý  sN    	%
	 c         C   s  |  i  } h  } h  } xë| | j  oÝt i | | ƒ } | d  j o Pn | i d d ƒ \ } }	 |  i o | i ƒ  } n | i d ƒ } |	 d  j o |  i d | ƒ | }	 n} |	 d  d j o |	 d j n p& |	 d  d j o |	 d j n o |	 d d !}	 n  |  i	 p |  i d	 | ƒ n t
 i | ƒ } | d  j	 oR | i d
 ƒ }
 |	 p d  | |
 p d <|  i p t |  i ƒ d |  _ q q n d |	 j o |  i d ƒ n | | j o |  i d | ƒ n |	 i t ƒ }	 |  i |	 ƒ | | <q W| | | f S(   NRb   t   valuei    s%   no value specified for attribute `%s'i   Rˆ   iÿÿÿÿR‡   s   attribute `%s' value not quotedRš   R4   R   s   `<' illegal in attribute values   attribute `%s' specified twice(   R6   t   attrfindRN   R,   RP   R   Rx   R2   RO   R   t   xmlnsR>   RT   R7   t	   translatet	   attrtransR[   (   R   R0   RV   R€   R6   Rœ   R�   RW   Rž   t	   attrvalueRš   (    (    s   scripts/common/Lib/xmllib.pyR˜   *  sD    	 

&&

c         C   sü  |  i  } t i | | d ƒ } | d  j o d St i | | ƒ } | d  j p | i d ƒ | i d ƒ j o |  i d ƒ | i d ƒ S| i d ƒ } } |  i o | i	 ƒ  } } n |  i
 o+ |  i o! | |  i j o |  i d ƒ n |  i
 o |  i o |  i d ƒ n | i d ƒ \ } } |  i | | | ƒ \ }	 }
 } |  i i | |
 | f ƒ |  i o t i | ƒ } n d  } | d  j	 oõ | i d	 d
 ƒ \ } } | d  j o
 d } n d  } x5 |  i D]* \ } } } | | j o | | } qÒqÒW| d  j o# | d j o |  i i | ƒ } n | d  j	 o | d | } n  | d j o | d | } n | |
 | f |  i d <n h  } x |	 i ƒ  D] } | | | <q›W|  i o8h  } x%|	 i ƒ  D]\ } } | } t i | ƒ } | d  j	 oÕ | i d	 d
 ƒ \ } } |  i o | i	 ƒ  } n | d  j	 o’ d  } x5 |  i D]* \ } } } | | j o | | } qIqIW| d  j o |  i i | ƒ } n | d  j	 o | d | } qË| d | } qÏn | | | <| | | <qÌW| }	 n |  i i | ƒ } | d  j	 oŒ x@ |	 i ƒ  D]2 } | | j o |  i d | | | f ƒ qqWxF | i ƒ  D]4 \ } } | d  j	 o | |	 j o | |	 | <q`q`Wn |  i i | d ƒ d } |  i | |	 | ƒ | i d ƒ d j o |  i | ƒ n | i d ƒ S(   Ni   iÿÿÿÿi    s   garbage in starttagt   tagnames   starttag does not match DOCTYPEs   multiple elements on top levelt   attrsR•   t   localR4   R…   t   :s"   unknown attribute `%s' in tag `%s't   slasht   /(   NN(   R6   R�   RN   R,   t   starttagmatchR2   RO   RP   R   Rx   R=   R<   R7   t   spanR˜   t   appendR>   t   qnameR?   R+   R*   t   itemst
   attributesR   t   finish_starttagR~   (   R   RV   R6   R2   R0   t   nstagR¥   R&   R€   Rœ   R]   RW   R•   R“   R^   R_   R`   t   attrnamemapR/   t	   nattrdictt   valt   okeyt   aprefixt   ansR°   t   method(    (    s   scripts/common/Lib/xmllib.pyRk   O  s¢    	,



  
 

 

 # c         C   sy  |  i  } t i | | d ƒ } | d  j o d St i | | d ƒ } | d  j o^ |  i o |  i | | ƒ | d S|  i p |  i d ƒ n |  i	 d d } | d } n„ | i
 d ƒ } |  i o | i ƒ  } n |  i oA |  i	 p | |  i	 d d j o |  i | | ƒ | d Sn | i d ƒ } t i | | ƒ d  j o |  i d ƒ n |  i | ƒ | i d ƒ S(   Ni   iÿÿÿÿi   s   no name specified in end tagi    s   garbage in end tag(   R6   R�   RN   R,   R—   R9   Re   R   RO   R7   RP   R   Rx   R2   R‹   R~   (   R   RV   R6   R2   RW   R0   R&   (    (    s   scripts/common/Lib/xmllib.pyRm   ¡  s2    	
	


#c         C   s8   | d  j	 o |  i | | | ƒ n |  i | | ƒ d  S(   N(   R,   t   handle_starttagt   unknown_starttag(   R   R¥   Rœ   R¹   (    (    s   scripts/common/Lib/xmllib.pyR±   ¾  s    c         C   sž  d |  _  | pC |  i d ƒ t |  i ƒ d } | d j  o |  i | ƒ d  Snh d } x? t t |  i ƒ ƒ D]( } | |  i | d j o
 | } qo qo W| d j o |  i d ƒ d  SxÝ t |  i ƒ | j oÆ | t |  i ƒ d j  o  |  i d |  i d d ƒ n |  i d d } |  i i | d ƒ d } | d  j	 o |  i	 | | ƒ n |  i | ƒ |  i
 t |  i ƒ j o d |  _
 n |  i d =q½ Wd  S(	   Ni    s   name-less end tagi   iÿÿÿÿs   unopened end tags   missing close tag for %si   (   NN(   R9   RO   RT   R7   t   unknown_endtagt   rangeR   R+   R,   t   handle_endtagR>   (   R   R0   t   foundRV   R²   R¹   (    (    s   scripts/common/Lib/xmllib.pyR~   Å  s6    		   c         C   s   d  S(   N(    (   R   R   R   (    (    s   scripts/common/Lib/xmllib.pyRs   ã  s    c         C   s   d  S(   N(    (   R   R0   R	   R
   RE   (    (    s   scripts/common/Lib/xmllib.pyRŒ   ç  s    c         C   s   | | ƒ d  S(   N(    (   R   R0   R¹   R¦   (    (    s   scripts/common/Lib/xmllib.pyRº   ë  s    c         C   s   | ƒ  d  S(   N(    (   R   R0   R¹   (    (    s   scripts/common/Lib/xmllib.pyR¾   ï  s    c         C   s£   y8 | d d j o t  | d d ƒ } n t  | ƒ } Wn! t j
 o |  i | ƒ d  SXd | j o
 d j n p |  i | ƒ d  S|  i t | ƒ ƒ d  S(   Ni    RI   i   i   iÿ   (   RR   t
   ValueErrort   unknown_charrefRe   RQ   (   R   Rb   R   (    (    s   scripts/common/Lib/xmllib.pyRz   ó  s    s   &#60;t   lts   &#62;t   gts   &#38;RK   s   &#34;t   quots   &#39;t   aposc         C   s   d  S(   N(    (   R   RE   (    (    s   scripts/common/Lib/xmllib.pyRe   
  s    c         C   s   d  S(   N(    (   R   RE   (    (    s   scripts/common/Lib/xmllib.pyR’     s    c         C   s   d  S(   N(    (   R   RE   (    (    s   scripts/common/Lib/xmllib.pyR„     s    c         C   s   d  S(   N(    (   R   Rb   RE   (    (    s   scripts/common/Lib/xmllib.pyR›     s    c         C   s   t  d |  i | f ƒ ‚ d  S(   Ns   Syntax error at line %d: %s(   R    R:   (   R   t   message(    (    s   scripts/common/Lib/xmllib.pyRO     s    c         C   s   d  S(   N(    (   R   R0   R¦   (    (    s   scripts/common/Lib/xmllib.pyR»     s    c         C   s   d  S(   N(    (   R   R0   (    (    s   scripts/common/Lib/xmllib.pyR¼     s    c         C   s   d  S(   N(    (   R   RM   (    (    s   scripts/common/Lib/xmllib.pyRÁ      s    c         C   s   |  i  d | ƒ d  S(   Ns"   reference to unknown entity `&%s;'(   RO   (   R   Rb   (    (    s   scripts/common/Lib/xmllib.pyR|   !  s    N(/   R   R   R°   R   R   R   R   R   R   R   R@   R!   R   R   RA   RC   RF   RG   R[   Ra   RD   Ro   Rw   Rq   R,   R™   Ru   R˜   Rk   Rm   R±   R~   Rs   RŒ   Rº   R¾   Rz   RS   Re   R’   R„   R›   RO   R»   R¼   RÁ   R|   (    (    (    s   scripts/common/Lib/xmllib.pyR   [   s`   									2			¸		0		-	%	R								

								t   TestXMLParserc           B   s†   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z d „  Z RS(   c         K   s   d |  _  t i |  | � d  S(   NR4   (   t   testdataR   R   (   R   R   (    (    s   scripts/common/Lib/xmllib.pyR   '  s    	c         C   s   |  i  ƒ  d G| Gd G| GHd  S(   Ns   xml: encoding =s   standalone =(   t   flush(   R   R   R   (    (    s   scripts/common/Lib/xmllib.pyRs   +  s    
c         C   s!   |  i  ƒ  d G| Gt | ƒ GHd  S(   Ns   DOCTYPE:(   RÉ   t   repr(   R   R0   R	   R
   RE   (    (    s   scripts/common/Lib/xmllib.pyRŒ   /  s    
c         C   s>   |  i  | |  _  t t |  i  ƒ ƒ d j o |  i ƒ  n d  S(   NiF   (   RÈ   RT   RÊ   RÉ   (   R   RE   (    (    s   scripts/common/Lib/xmllib.pyRe   3  s    c         C   s0   |  i  } | o d |  _  d Gt | ƒ GHn d  S(   NR4   s   data:(   RÈ   RÊ   (   R   RE   (    (    s   scripts/common/Lib/xmllib.pyRÉ   8  s    		c         C   s   |  i  ƒ  d Gt | ƒ GHd  S(   Ns   cdata:(   RÉ   RÊ   (   R   RE   (    (    s   scripts/common/Lib/xmllib.pyR’   >  s    
c         C   s!   |  i  ƒ  d G| Gt | ƒ GHd  S(   Ns   processing:(   RÉ   RÊ   (   R   Rb   RE   (    (    s   scripts/common/Lib/xmllib.pyR›   B  s    
c         C   sP   |  i  ƒ  t | ƒ } t | ƒ d j o | d  d | d } n d G| GHd  S(   NiD   i    s   ...iàÿÿÿs   comment:(   RÉ   RÊ   RT   (   R   RE   t   r(    (    s   scripts/common/Lib/xmllib.pyR„   F  s
    
c         C   s   d |  i  G| GHd  S(   Ns   error at line %d:(   R:   (   R   RÆ   (    (    s   scripts/common/Lib/xmllib.pyRO   M  s    c         C   sd   |  i  ƒ  | p d | d GHn? d | Gx. | i ƒ  D]  \ } } | d d | d Gq7 Wd GHd  S(   Ns   start tag: <R   R   R‡   (   RÉ   R¯   (   R   R0   R¦   Rb   RŸ   (    (    s   scripts/common/Lib/xmllib.pyR»   P  s    
 c         C   s   |  i  ƒ  d | d GHd  S(   Ns   end tag: </R   (   RÉ   (   R   R0   (    (    s   scripts/common/Lib/xmllib.pyR¼   Z  s    
c         C   s   |  i  ƒ  d | d GHd  S(   Ns   *** unknown entity ref: &RJ   (   RÉ   (   R   RM   (    (    s   scripts/common/Lib/xmllib.pyR|   ^  s    
c         C   s   |  i  ƒ  d | d GHd  S(   Ns   *** unknown char ref: &#RJ   (   RÉ   (   R   RM   (    (    s   scripts/common/Lib/xmllib.pyRÁ   b  s    
c         C   s   t  i |  ƒ |  i ƒ  d  S(   N(   R   RG   RÉ   (   R   (    (    s   scripts/common/Lib/xmllib.pyRG   f  s    (   R   R   R   Rs   RŒ   Re   RÉ   R’   R›   R„   RO   R»   R¼   R|   RÁ   RG   (    (    (    s   scripts/common/Lib/xmllib.pyRÇ   %  s   										
			c         C   s  d d  k  } d d  k } d d k l } |  p | i d }  n | i |  d ƒ \ } }  t } d } xB | D]: \ } } | d j o
 t } qk | d j o
 d } qk qk W|  o |  d }	 n d }	 |	 d	 j o | i }
 nF y t |	 d
 ƒ }
 Wn/ t j
 o# } |	 Gd G| GH| i	 d ƒ n X|
 i
 ƒ  } |
 | i j	 o |
 i ƒ  n | ƒ  } | ƒ  } yN | o | i | ƒ | i ƒ  n) x | D] } | i | ƒ q‹W| i ƒ  WnH t j
 o< } | ƒ  } | GH| o d | | GHn | i	 d ƒ n X| ƒ  } | o d | | GHn d  S(   Niÿÿÿÿ(   t   timei   t   sti    s   -ss   -ts   test.xmlR�   RË   R¨   s   total time: %g(   t   syst   getoptRÌ   t   argvRÇ   R   t   stdint   opent   IOErrort   exitt   readRG   RF   R    (   RB   RÎ   RÏ   RÌ   t   optst   klasst   do_timet   ot   at   filet   ft   msgRE   RI   t   t0R‘   t   t1(    (    s   scripts/common/Lib/xmllib.pyt   testj  sZ     
		 		t   __main__(6   t   __doc__t   ret   stringt   warningst   warnt   DeprecationWarningR   t   RuntimeErrorR    t   _St   _opSt   _Namet   _QStrt   compileRi   Rg   RK   RM   R{   Ry   Rh   t   newlineR    Rj   t   starttagendt   patternR«   Rl   R‹   R�   R—   Rp   R}   t   _SystemLiteralt   _PublicLiteralt   _ExternalIdRv   Rr   Rt   R–   Rn   R‚   Rƒ   t	   maketransR£   t   _NCNameRš   R®   R¡   R   RÇ   R,   Rà   R   (    (    (    s   scripts/common/Lib/xmllib.pyt   <module>   st   	
-")e
ÿ ÿ ÌE7