AlkantarClanX12

Your IP : 13.59.87.145


Current Path : /opt/alt/python312/lib64/python3.12/xml/sax/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/xml/sax/__pycache__/xmlreader.cpython-312.opt-2.pyc

�

�Q�fP1���	ddlmZddlmZmZGd�d�ZGd�de�ZGd�d�ZGd	�d
�ZGd�d�Z	Gd
�de	�Z
d�Zedk(re�yy)�)�handler)�SAXNotSupportedException�SAXNotRecognizedExceptionc�h�eZdZ	d�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zy)�	XMLReaderc���tj�|_tj�|_tj
�|_tj�|_y�N)	r�ContentHandler�
_cont_handler�
DTDHandler�_dtd_handler�EntityResolver�_ent_handler�ErrorHandler�_err_handler��selfs �8/opt/alt/python312/lib64/python3.12/xml/sax/xmlreader.py�__init__zXMLReader.__init__sF��$�3�3�5���#�.�.�0���#�2�2�4���#�0�0�2���c��	td���Nz This method must be implemented!��NotImplementedError�r�sources  r�parsezXMLReader.parses��K�!�"D�E�Erc��	|jSr	�rrs r�getContentHandlerzXMLReader.getContentHandler"s��-��!�!�!rc��	||_yr	r�rrs  r�setContentHandlerzXMLReader.setContentHandler&s
��D�$��rc��	|jSr	�r
rs r�
getDTDHandlerzXMLReader.getDTDHandler*s��*�� � � rc��	||_yr	r%r"s  r�
setDTDHandlerzXMLReader.setDTDHandler.s
��A�#��rc��	|jSr	�rrs r�getEntityResolverzXMLReader.getEntityResolver2s��-�� � � rc��	||_yr	r*)r�resolvers  r�setEntityResolverzXMLReader.setEntityResolver6s
��:�$��rc��	|jSr	�rrs r�getErrorHandlerzXMLReader.getErrorHandler:s��+�� � � rc��	||_yr	r0r"s  r�setErrorHandlerzXMLReader.setErrorHandler>s
��=�#��rc��	td��)NzLocale support not implemented)r)r�locales  r�	setLocalezXMLReader.setLocaleBs��	=�'�'G�H�Hrc� �	td|z���NzFeature '%s' not recognized�r�r�names  r�
getFeaturezXMLReader.getFeatureKs��;�'�(E��(L�M�Mrc� �	td|z��r8r9)rr;�states   r�
setFeaturezXMLReader.setFeatureOs��+�'�(E��(L�M�Mrc� �	td|z���NzProperty '%s' not recognizedr9r:s  r�getPropertyzXMLReader.getPropertySs��<�'�(F��(M�N�Nrc� �	td|z��rAr9)rr;�values   r�setPropertyzXMLReader.setPropertyWs��,�'�(F��(M�N�NrN)�__name__�
__module__�__qualname__rrr r#r&r(r+r.r1r3r6r<r?rBrE�rrrrsX��
�3�F�"�%�!�$�!�%�!�$�I�N�N�O�Orrc�4�eZdZ	dd�Zd�Zd�Zd�Zd�Zd�Zy)	�IncrementalParserc�<�||_tj|�yr	)�_bufsizerr)r�bufsizes  rrzIncrementalParser.__init__os����
����4� rc�P�ddlm}|j|�}|j|�|j	�}|�|j�}|j
|j�x}r/|j|�|j
|j�x}r�/|j�y)Nr)�saxutils)
�rP�prepare_input_source�
prepareParser�getCharacterStream�
getByteStream�readrM�feed�close)rrrP�file�buffers     rrzIncrementalParser.parsess�����.�.�v�6�����6�"��(�(�*���<��'�'�)�D��	�	�$�-�-�0�0�f�0��I�I�f���	�	�$�-�-�0�0�f�0��
�
�rc��	td��rr)r�datas  rrWzIncrementalParser.feeds��	(�"�"D�E�Erc��	td��)Nz!prepareParser must be overridden!rrs  rrSzIncrementalParser.prepareParser�s��	=�!�"E�F�Frc��	td��rrrs rrXzIncrementalParser.close�s��		)�"�"D�E�Erc��	td��rrrs r�resetzIncrementalParser.reset�s��	 �"�"D�E�ErN)i)	rFrGrHrrrWrSrXr`rIrrrKrK[s)���&!�
�F�G�
F�FrrKc�&�eZdZ	d�Zd�Zd�Zd�Zy)�Locatorc��	y�N���rIrs r�getColumnNumberzLocator.getColumnNumber�s��@�rc��	yrdrIrs r�
getLineNumberzLocator.getLineNumber�s��>�rc��	yr	rIrs r�getPublicIdzLocator.getPublicId����=�rc��	yr	rIrs r�getSystemIdzLocator.getSystemId�rkrN)rFrGrHrfrhrjrmrIrrrbrb�s��"�
���rrbc�R�eZdZ	d
d�Zd�Zd�Zd�Zd�Zd�Zd�Z	d	�Z
d
�Zd�Zd�Z
y)�InputSourceNc�J�||_d|_d|_d|_d|_yr	)�_InputSource__system_id�_InputSource__public_id�_InputSource__encoding�_InputSource__bytefile�_InputSource__charfile�r�	system_ids  rrzInputSource.__init__�s'��$��������������rc��	||_yr	�rr)r�	public_ids  r�setPublicIdzInputSource.setPublicId��
��9�$��rc��	|jSr	ryrs rrjzInputSource.getPublicId����<����rc��	||_yr	�rqrvs  r�setSystemIdzInputSource.setSystemId�r|rc��	|jSr	r�rs rrmzInputSource.getSystemId�r~rc��	||_yr	�rs)r�encodings  r�setEncodingzInputSource.setEncoding�s��	9�#��rc��	|jSr	r�rs r�getEncodingzInputSource.getEncoding����9����rc��	||_yr	�rt)r�bytefiles  r�
setByteStreamzInputSource.setByteStream�s��		A�#��rc��	|jSr	r�rs rrUzInputSource.getByteStream�s��	1����rc��	||_yr	�ru)r�charfiles  r�setCharacterStreamzInputSource.setCharacterStreams��	0�#��rc��	|jSr	r�rs rrTzInputSource.getCharacterStreamr�rr	)rFrGrHrr{rjr�rmr�r�r�rUr�rTrIrrroro�s?��
B� �%� �%� �#��#��#�rroc�t�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zdd�Zd�Zd�Zd�Zy)�AttributesImplc��	||_yr	��_attrs)r�attrss  rrzAttributesImpl.__init__s��	7���rc�,�t|j�Sr	��lenr�rs r�	getLengthzAttributesImpl.getLength����4�;�;��rc��y)N�CDATArIr:s  r�getTypezAttributesImpl.getTypes��rc� �|j|Sr	r�r:s  r�getValuezAttributesImpl.getValue"����{�{�4� � rc� �|j|Sr	r�r:s  r�getValueByQNamezAttributesImpl.getValueByQName%r�rc�8�||jvrt|��|Sr	�r��KeyErrorr:s  r�getNameByQNamezAttributesImpl.getNameByQName(����t�{�{�"��4�.� ��rc�8�||jvrt|��|Sr	r�r:s  r�getQNameByNamezAttributesImpl.getQNameByName-r�rc�H�t|jj��Sr	��listr��keysrs r�getNameszAttributesImpl.getNames2����D�K�K�$�$�&�'�'rc�H�t|jj��Sr	r�rs r�	getQNameszAttributesImpl.getQNames5r�rc�,�t|j�Sr	r�rs r�__len__zAttributesImpl.__len__8r�rc� �|j|Sr	r�r:s  r�__getitem__zAttributesImpl.__getitem__;r�rc�H�t|jj��Sr	r�rs rr�zAttributesImpl.keys>r�rc��||jvSr	r�r:s  r�__contains__zAttributesImpl.__contains__As���t�{�{�"�"rNc�:�|jj||�Sr	)r��get)rr;�alternatives   rr�zAttributesImpl.getDs���{�{���t�[�1�1rc�8�|j|j�Sr	)�	__class__r�rs r�copyzAttributesImpl.copyGs���~�~�d�k�k�*�*rc�H�t|jj��Sr	)r�r��itemsrs rr�zAttributesImpl.itemsJs���D�K�K�%�%�'�(�(rc�H�t|jj��Sr	)r�r��valuesrs rr�zAttributesImpl.valuesMs���D�K�K�&�&�(�)�)rr	)rFrGrHrr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rIrrr�r�sW��� ��!�!��
�
(�(� �!�(�#�2�+�)�*rr�c�0�eZdZd�Zd�Zd�Zd�Zd�Zd�Zy)�AttributesNSImplc�"�	||_||_yr	)r��_qnames)rr��qnamess   rrzAttributesNSImpl.__init__Ts��	=������rc��|jj�D]\}}||k(s�|j|cSt|��r	)r�r�r�r��rr;�nsname�qnames    rr�z AttributesNSImpl.getValueByQName\s?��#�|�|�1�1�3�O�V�U���}��{�{�6�*�*� 4��t�n�rc�n�|jj�D]\}}||k(s�|cSt|��r	)r�r�r�r�s    rr�zAttributesNSImpl.getNameByQNamecs5��#�|�|�1�1�3�O�V�U���}��
� 4��t�n�rc� �|j|Sr	)r�r:s  rr�zAttributesNSImpl.getQNameByNamejs���|�|�D�!�!rc�H�t|jj��Sr	)r�r�r�rs rr�zAttributesNSImpl.getQNamesms���D�L�L�'�'�)�*�*rc�N�|j|j|j�Sr	)r�r�r�rs rr�zAttributesNSImpl.copyps���~�~�d�k�k�4�<�<�8�8rN)	rFrGrHrr�r�r�r�r�rIrrr�r�Rs �����"�+�9rr�c�@�t�t�t�yr	)rrKrbrIrr�_testr�ts��
�K����Ir�__main__N)
rQr�_exceptionsrrrrKrbror�r�r�rFrIrr�<module>r�sz��"��L�
NO�NO�`DF�	�DF�P��0U�U�r:*�:*�|9�~�9�D�
�z��	�G�r