o
    JAf=  ã                   @   s    	 d Z G dd„ dƒZG dd„ dƒZG dd„ dƒZG dd„ dƒZd	Zd
ZdZdZdZ	dZ
eeeee	e
gZdZdZdZdZdZdZeeeeeegZG dd„ dƒZdS )z2.0betac                   @   s&   e Zd Z	 dd„ Zdd„ Zdd„ ZdS )ÚErrorHandlerc                 C   ó   	 |‚©N© ©ÚselfÚ	exceptionr   r   ú&/usr/lib/python3.10/xml/sax/handler.pyÚerror    ó   zErrorHandler.errorc                 C   r   r   r   r   r   r   r   Ú
fatalError$   r
   zErrorHandler.fatalErrorc                 C   s   	 t |ƒ d S r   )Úprintr   r   r   r   Úwarning(   s   zErrorHandler.warningN)Ú__name__Ú
__module__Ú__qualname__r	   r   r   r   r   r   r   r      s
    	r   c                   @   s~   e Zd Z	 dd„ Zdd„ Zdd„ Zdd„ Zd	d
„ Zdd„ Zdd„ Z	dd„ Z
dd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ ZdS )ÚContentHandlerc                 C   s
   d | _ d S r   ©Z_locator©r   r   r   r   Ú__init__6   s   
zContentHandler.__init__c                 C   s   	 || _ d S r   r   )r   Zlocatorr   r   r   ÚsetDocumentLocator9   s   
z!ContentHandler.setDocumentLocatorc                 C   ó   d S r   r   r   r   r   r   ÚstartDocumentP   ó   zContentHandler.startDocumentc                 C   r   r   r   r   r   r   r   ÚendDocumentW   r   zContentHandler.endDocumentc                 C   r   r   r   )r   ÚprefixZurir   r   r   ÚstartPrefixMapping`   r   z!ContentHandler.startPrefixMappingc                 C   r   r   r   )r   r   r   r   r   ÚendPrefixMappingw   r   zContentHandler.endPrefixMappingc                 C   r   r   r   )r   ÚnameÚattrsr   r   r   ÚstartElement~   r   zContentHandler.startElementc                 C   r   r   r   ©r   r   r   r   r   Ú
endElement†   r   zContentHandler.endElementc                 C   r   r   r   )r   r   Úqnamer   r   r   r   ÚstartElementNSŒ   r   zContentHandler.startElementNSc                 C   r   r   r   )r   r   r"   r   r   r   ÚendElementNS˜   r   zContentHandler.endElementNSc                 C   r   r   r   ©r   Zcontentr   r   r   Ú
charactersž   r   zContentHandler.charactersc                 C   r   r   r   )r   Ú
whitespacer   r   r   ÚignorableWhitespace¨   r   z"ContentHandler.ignorableWhitespacec                 C   r   r   r   )r   ÚtargetÚdatar   r   r   ÚprocessingInstruction¶   r   z$ContentHandler.processingInstructionc                 C   r   r   r   r    r   r   r   ÚskippedEntityÁ   r   zContentHandler.skippedEntityN)r   r   r   r   r   r   r   r   r   r   r!   r#   r$   r&   r(   r+   r,   r   r   r   r   r   /   s     	
r   c                   @   s   e Zd Z	 dd„ Zdd„ ZdS )Ú
DTDHandlerc                 C   r   r   r   )r   r   ÚpublicIdÚsystemIdr   r   r   ÚnotationDeclÖ   r   zDTDHandler.notationDeclc                 C   r   r   r   )r   r   r.   r/   Zndatar   r   r   ÚunparsedEntityDeclÙ   r   zDTDHandler.unparsedEntityDeclN)r   r   r   r0   r1   r   r   r   r   r-   Ð   s    r-   c                   @   s   e Zd Z	 dd„ ZdS )ÚEntityResolverc                 C   s   	 |S r   r   )r   r.   r/   r   r   r   ÚresolveEntityæ   s   zEntityResolver.resolveEntityN)r   r   r   r3   r   r   r   r   r2   ß   s    r2   z&http://xml.org/sax/features/namespacesz.http://xml.org/sax/features/namespace-prefixesz,http://xml.org/sax/features/string-interningz&http://xml.org/sax/features/validationz5http://xml.org/sax/features/external-general-entitiesz7http://xml.org/sax/features/external-parameter-entitiesz-http://xml.org/sax/properties/lexical-handlerz1http://xml.org/sax/properties/declaration-handlerz&http://xml.org/sax/properties/dom-nodez(http://xml.org/sax/properties/xml-stringz-http://www.python.org/sax/properties/encodingz3http://www.python.org/sax/properties/interning-dictc                   @   s6   e Zd Z	 dd„ Zdd„ Zdd„ Zdd„ Zd	d
„ ZdS )ÚLexicalHandlerc                 C   r   r   r   r%   r   r   r   Úcommentf  r   zLexicalHandler.commentc                 C   r   r   r   )r   r   Z	public_idZ	system_idr   r   r   ÚstartDTDl  r   zLexicalHandler.startDTDc                 C   r   r   r   r   r   r   r   ÚendDTDy  r   zLexicalHandler.endDTDc                 C   r   r   r   r   r   r   r   Ú
startCDATA|  r   zLexicalHandler.startCDATAc                 C   r   r   r   r   r   r   r   ÚendCDATA‚  r   zLexicalHandler.endCDATAN)r   r   r   r5   r6   r7   r8   r9   r   r   r   r   r4   Y  s    r4   N)Úversionr   r   r-   r2   Zfeature_namespacesZfeature_namespace_prefixesZfeature_string_interningZfeature_validationZfeature_external_gesZfeature_external_pesZall_featuresZproperty_lexical_handlerZproperty_declaration_handlerZproperty_dom_nodeZproperty_xml_stringZproperty_encodingZproperty_interning_dictZall_propertiesr4   r   r   r   r   Ú<module>   sD    
 "ûû