a
    zeb6                     @   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dS )z2.0betac                   @   s$   e Zd Zdd Zdd Zdd ZdS )ErrorHandlerc                 C   s   |d S N self	exceptionr   r   %/usr/lib/python3.9/xml/sax/handler.pyerror    s    zErrorHandler.errorc                 C   s   |d S r   r   r   r   r   r   
fatalError$   s    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   s   d S r   r   r   r   r   r   startDocumentP   s    zContentHandler.startDocumentc                 C   s   d S r   r   r   r   r   r   endDocumentW   s    zContentHandler.endDocumentc                 C   s   d S r   r   )r   prefixZurir   r   r   startPrefixMapping`   s    z!ContentHandler.startPrefixMappingc                 C   s   d S r   r   )r   r   r   r   r   endPrefixMappingw   s    zContentHandler.endPrefixMappingc                 C   s   d S r   r   )r   nameattrsr   r   r   startElement~   s    zContentHandler.startElementc                 C   s   d S r   r   r   r   r   r   r   
endElement   s    zContentHandler.endElementc                 C   s   d S r   r   )r   r   qnamer   r   r   r   startElementNS   s    zContentHandler.startElementNSc                 C   s   d S r   r   )r   r   r   r   r   r   endElementNS   s    zContentHandler.endElementNSc                 C   s   d S r   r   )r   Zcontentr   r   r   
characters   s    zContentHandler.charactersc                 C   s   d S r   r   )r   
whitespacer   r   r   ignorableWhitespace   s    z"ContentHandler.ignorableWhitespacec                 C   s   d S r   r   )r   targetdatar   r   r   processingInstruction   s    z$ContentHandler.processingInstructionc                 C   s   d S r   r   r   r   r   r   skippedEntity   s    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   s   d S r   r   )r   r   publicIdsystemIdr   r   r   notationDecl   s    zDTDHandler.notationDeclc                 C   s   d S r   r   )r   r   r)   r*   Zndatar   r   r   unparsedEntityDecl   s    zDTDHandler.unparsedEntityDeclN)r   r   r   r+   r,   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   r.   r   r   r   r   r-      s   r-   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-dictN)versionr   r   r(   r-   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_propertiesr   r   r   r   <module>   s>   
 "