
    .hhP1                         S SK Jr  S SKJrJr   " S S5      r " S S\5      r " S S5      r " S	 S
5      r " S S5      r	 " S S\	5      r
S r\S:X  a  \" 5         gg)   )handler)SAXNotSupportedExceptionSAXNotRecognizedExceptionc                   n    \ rS rSrS rS rS rS rS rS r	S r
S	 rS
 rS rS rS rS rS rS rSrg)	XMLReader   c                     [         R                  " 5       U l        [         R                  " 5       U l        [         R
                  " 5       U l        [         R                  " 5       U l        g N)	r   ContentHandler_cont_handler
DTDHandler_dtd_handlerEntityResolver_ent_handlerErrorHandler_err_handlerselfs    :/opt/python-3.13.8/usr/lib/python3.13/xml/sax/xmlreader.py__init__XMLReader.__init__   sF    $335#..0#224#002    c                     [        S5      eNz This method must be implemented!NotImplementedErrorr   sources     r   parseXMLReader.parse   s    !"DEEr   c                     U R                   $ r
   r   r   s    r   getContentHandlerXMLReader.getContentHandler"   s    !!!r   c                     Xl         g r
   r"   r   r   s     r   setContentHandlerXMLReader.setContentHandler&   s    $r   c                     U R                   $ r
   r   r   s    r   getDTDHandlerXMLReader.getDTDHandler*          r   c                     Xl         g r
   r*   r&   s     r   setDTDHandlerXMLReader.setDTDHandler.       #r   c                     U R                   $ r
   r   r   s    r   getEntityResolverXMLReader.getEntityResolver2   r-   r   c                     Xl         g r
   r3   )r   resolvers     r   setEntityResolverXMLReader.setEntityResolver6   s    $r   c                     U R                   $ r
   r   r   s    r   getErrorHandlerXMLReader.getErrorHandler:   r-   r   c                     Xl         g r
   r;   r&   s     r   setErrorHandlerXMLReader.setErrorHandler>   r1   r   c                     [        S5      e)NzLocale support not implemented)r   )r   locales     r   	setLocaleXMLReader.setLocaleB   s     ''GHHr   c                     [        SU-  5      eNzFeature '%s' not recognizedr   r   names     r   
getFeatureXMLReader.getFeatureK       '(E(LMMr   c                     [        SU-  5      erF   rG   )r   rI   states      r   
setFeatureXMLReader.setFeatureO   rL   r   c                     [        SU-  5      eNzProperty '%s' not recognizedrG   rH   s     r   getPropertyXMLReader.getPropertyS       '(F(MNNr   c                     [        SU-  5      erR   rG   )r   rI   values      r   setPropertyXMLReader.setPropertyW   rU   r   )r   r   r   r   N)__name__
__module____qualname____firstlineno__r   r   r#   r'   r+   r/   r4   r8   r<   r?   rC   rJ   rO   rS   rX   __static_attributes__ r   r   r   r      sS    3F"%!$!%!$INNOOr   r   c                   <    \ rS rSrS
S jrS rS rS rS rS r	Sr
g	)IncrementalParser[   c                 :    Xl         [        R                  U 5        g r
   )_bufsizer   r   )r   bufsizes     r   r   IncrementalParser.__init__o   s    4 r   c                 h   SSK Jn  UR                  U5      nU R                  U5        UR	                  5       nUc  UR                  5       nUR                  U R                  5      =n(       a5  U R                  U5        UR                  U R                  5      =n(       a  M5  U R                  5         g )Nr   )saxutils)
 rh   prepare_input_sourceprepareParsergetCharacterStreamgetByteStreamreadrd   feedclose)r   r   rh   filebuffers        r   r   IncrementalParser.parses   s    ..v66"((*<'')D		$--00f0IIf 		$--00f0

r   c                     [        S5      er   r   )r   datas     r   ro   IncrementalParser.feed   s     ""DEEr   c                     [        S5      e)Nz!prepareParser must be overridden!r   r   s     r   rk   IncrementalParser.prepareParser   s     ""EFFr   c                     [        S5      er   r   r   s    r   rp   IncrementalParser.close   s     ""DEEr   c                     [        S5      er   r   r   s    r   resetIncrementalParser.reset   s    
 ""DEEr   )rd   N)i   )rZ   r[   r\   r]   r   r   ro   rk   rp   r|   r^   r_   r   r   ra   ra   [   s$    (!
FG
FFr   ra   c                   ,    \ rS rSrS rS rS rS rSrg)Locator   c                     gNr_   r   s    r   getColumnNumberLocator.getColumnNumber       r   c                     gr   r_   r   s    r   getLineNumberLocator.getLineNumber   r   r   c                     g r
   r_   r   s    r   getPublicIdLocator.getPublicId       r   c                     g r
   r_   r   s    r   getSystemIdLocator.getSystemId   r   r   r_   N)	rZ   r[   r\   r]   r   r   r   r   r^   r_   r   r   r   r      s    r   r   c                   Z    \ rS rSrSS jrS rS rS rS rS r	S	 r
S
 rS rS rS rSrg)InputSource   Nc                 H    Xl         S U l        S U l        S U l        S U l        g r
   )_InputSource__system_id_InputSource__public_id_InputSource__encoding_InputSource__bytefile_InputSource__charfiler   	system_ids     r   r   InputSource.__init__   s%    $r   c                     Xl         g r
   r   )r   	public_ids     r   setPublicIdInputSource.setPublicId       $r   c                     U R                   $ r
   r   r   s    r   r   InputSource.getPublicId       r   c                     Xl         g r
   r   r   s     r   setSystemIdInputSource.setSystemId   r   r   c                     U R                   $ r
   r   r   s    r   r   InputSource.getSystemId   r   r   c                     Xl         g r
   r   )r   encodings     r   setEncodingInputSource.setEncoding   	     #r   c                     U R                   $ r
   r   r   s    r   getEncodingInputSource.getEncoding       r   c                     Xl         g r
   r   )r   bytefiles     r   setByteStreamInputSource.setByteStream   s	     #r   c                     U R                   $ r
   r   r   s    r   rm   InputSource.getByteStream   s    
 r   c                     Xl         g r
   r   )r   charfiles     r   setCharacterStreamInputSource.setCharacterStream  r   r   c                     U R                   $ r
   r   r   s    r   rl   InputSource.getCharacterStream  r   r   )
__bytefile
__charfile
__encoding__public_id__system_idr
   )rZ   r[   r\   r]   r   r   r   r   r   r   r   r   rm   r   rl   r^   r_   r   r   r   r      s9      % % ###r   r   c                   ~    \ rS rSrS rS rS rS rS rS r	S r
S	 rS
 rS rS rS rS rSS jrS rS rS rSrg)AttributesImpli  c                     Xl         g r
   _attrs)r   attrss     r   r   AttributesImpl.__init__  s	     r   c                 ,    [        U R                  5      $ r
   lenr   r   s    r   	getLengthAttributesImpl.getLength      4;;r   c                     g)NCDATAr_   rH   s     r   getTypeAttributesImpl.getType  s    r   c                      U R                   U   $ r
   r   rH   s     r   getValueAttributesImpl.getValue"      {{4  r   c                      U R                   U   $ r
   r   rH   s     r   getValueByQNameAttributesImpl.getValueByQName%  r   r   c                 :    XR                   ;  a  [        U5      eU$ r
   r   KeyErrorrH   s     r   getNameByQNameAttributesImpl.getNameByQName(      {{"4. r   c                 :    XR                   ;  a  [        U5      eU$ r
   r   rH   s     r   getQNameByNameAttributesImpl.getQNameByName-  r   r   c                 H    [        U R                  R                  5       5      $ r
   listr   keysr   s    r   getNamesAttributesImpl.getNames2      DKK$$&''r   c                 H    [        U R                  R                  5       5      $ r
   r   r   s    r   	getQNamesAttributesImpl.getQNames5  r   r   c                 ,    [        U R                  5      $ r
   r   r   s    r   __len__AttributesImpl.__len__8  r   r   c                      U R                   U   $ r
   r   rH   s     r   __getitem__AttributesImpl.__getitem__;  r   r   c                 H    [        U R                  R                  5       5      $ r
   r   r   s    r   r   AttributesImpl.keys>  r   r   c                     XR                   ;   $ r
   r   rH   s     r   __contains__AttributesImpl.__contains__A  s    {{""r   Nc                 8    U R                   R                  X5      $ r
   )r   get)r   rI   alternatives      r   r   AttributesImpl.getD  s    {{t11r   c                 8    U R                  U R                  5      $ r
   )	__class__r   r   s    r   copyAttributesImpl.copyG  s    ~~dkk**r   c                 H    [        U R                  R                  5       5      $ r
   )r   r   itemsr   s    r   r  AttributesImpl.itemsJ  s    DKK%%'((r   c                 H    [        U R                  R                  5       5      $ r
   )r   r   valuesr   s    r   r  AttributesImpl.valuesM  s    DKK&&())r   r   r
   )rZ   r[   r\   r]   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r^   r_   r   r   r   r     sW     !!

(( !(#2+)*r   r   c                   8    \ rS rSrS rS rS rS rS rS r	Sr
g	)
AttributesNSImpliR  c                     Xl         X l        g r
   r   _qnames)r   r   qnamess      r   r   AttributesNSImpl.__init__T  s    
 r   c                     U R                   R                  5        H  u  p#X1:X  d  M  U R                  U   s  $    [        U5      er
   )r  r  r   r   r   rI   nsnameqnames       r   r    AttributesNSImpl.getValueByQName\  s;    #||113OV}{{6**  4 tnr   c                 p    U R                   R                  5        H  u  p#X1:X  d  M  Us  $    [        U5      er
   )r  r  r   r  s       r   r   AttributesNSImpl.getNameByQNamec  s1    #||113OV}  4 tnr   c                      U R                   U   $ r
   )r  rH   s     r   r   AttributesNSImpl.getQNameByNamej  s    ||D!!r   c                 H    [        U R                  R                  5       5      $ r
   )r   r  r  r   s    r   r   AttributesNSImpl.getQNamesm  s    DLL'')**r   c                 N    U R                  U R                  U R                  5      $ r
   )r  r   r  r   s    r   r  AttributesNSImpl.copyp  s    ~~dkk4<<88r   r  N)rZ   r[   r\   r]   r   r   r   r   r   r  r^   r_   r   r   r  r  R  s     "+9r   r  c                  @    [        5         [        5         [        5         g r
   )r   ra   r   r_   r   r   _testr"  t  s    KIr   __main__N)ri   r   _exceptionsr   r   r   ra   r   r   r   r  r"  rZ   r_   r   r   <module>r%     su     L
NO NO`DF	 DFP 0U Ur:* :*|9~ 9D
 z	G r   