AlkantarClanX12

Your IP : 3.14.246.52


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

�

�Q�f�/����	ddlZddlZddlZddlZddlZddlmZddlmZd�Z	ifd�Z
ifd�Zifd�Zd	�Z
Gd
�dej�ZGd�d
ej �Zdd�Zy)�N�)�handler)�	xmlreaderc�\�	|j�D]\}}|j||�}�|S�N)�items�replace)�s�d�key�values    �7/opt/alt/python312/lib64/python3.12/xml/sax/saxutils.py�__dict_replacers.��<��g�g�i�
��U�
�I�I�c�5�!�� ��H�c��	|jdd�}|jdd�}|jdd�}|rt||�}|S)N�&�&amp;�>�&gt;�<�&lt;�r	r��data�entitiess  r�escapersM����<�<��W�%�D��<�<��V�$�D��<�<��V�$�D���d�H�-���Krc��	|jdd�}|jdd�}|rt||�}|jdd�S)Nrrrrrrrrs  r�unescaper"sI����<�<���$�D��<�<���$�D���d�H�-���<�<���%�%rc��	i|�dddd��}t||�}d|vr"d|vrd|jdd�z}|Sd	|z}|Sd|z}|S)
Nz&#10;z&#13;z&#9;)�
�
�	�"�'z"%s"z&quot;z'%s')rr	rs  r�	quoteattrr%0su��	�G�(�F�'��v�F�H��$��!�D�
�d�{��$�;��D�L�L��h�7�7�D�
�K��D�=�D��K���}���Krc�����ddl}|jSt�tj�r�St�t
jt
jf�r�St�tj�rG�fd�d�}|�}d�|_	nPtj�}d�|_�j|_	�j|_
�j|_tj ||ddd�	�S#t$rY�%wxYw)
Nrc�2��eZdZW�jZ�fd�Zy)� _gettextwriter.<locals>._wrapperc���t�|�Sr)�getattr)�self�name�outs  �r�__getattr__z,_gettextwriter.<locals>._wrapper.__getattr__Zs����s�D�)�)rN)�__name__�
__module__�__qualname__�	__class__r.)r-s�r�_wrapperr(Xs����
�
�I�
*rr3c��yr�r5rr�<lambda>z _gettextwriter.<locals>.<lambda>]s��trc��y)NTr5r5rrr6z _gettextwriter.<locals>.<lambda>bs��$r�xmlcharrefreplacer T)�encoding�errors�newline�
write_through)�sys�stdout�
isinstance�io�
TextIOBase�codecs�StreamWriter�StreamReaderWriter�	RawIOBase�close�BufferedIOBase�writable�write�seekable�tell�AttributeError�
TextIOWrapper)r-r9r=r3�buffers`    r�_gettextwriterrOGs����
�{���z�z���#�r�}�}�%��
��#��+�+�V�-F�-F�G�H��
��#�r�|�|�$�	*�	*����#����"�"�$��&����y�y���	�"�l�l�F�O��(�(�F�K����F�X�#6�$(�*.�0�0���	��	�s�"C<�<	D�Dc�d�eZdZdd�Zd�Zdd�Zd�Zd�Zd�Zd�Z	d	�Z
d
�Zd�Zd�Z
d
�Zd�Zd�Zy)�XMLGeneratorNc��tjj|�t||�}|j|_|j|_ig|_|jd|_	g|_
||_||_d|_
y)N���F)r�ContentHandler�__init__rOrI�_write�flush�_flush�_ns_contexts�_current_context�_undeclared_ns_maps�	_encoding�_short_empty_elements�_pending_start_element)r+r-r9�short_empty_elementss    rrUzXMLGenerator.__init__rst�����'�'��-��S�(�+���i�i����i�i����D��� $� 1� 1�"� 5���#%�� �!���%9��"�&+��#rc�v�	|dr/d|dk(rd|dzS|j|d}|r|dz|dzS|dS)Nrz$http://www.w3.org/XML/1998/namespacezxml:r�:)rZ)r+r,�prefixs   r�_qnamezXMLGenerator._qname~s\��E���7�
6��a��@���Q��'�'��*�*�4��7�3�F����|�d�1�g�-�-��A�w�rc�N�|jr|jd�d|_yy)NrF�r^rV)r+�
endElements  r�_finish_pending_start_elementz*XMLGenerator._finish_pending_start_element�s$���&�&��K�K���*/�D�'�'rc�@�|jd|jz�y)Nz$<?xml version="1.0" encoding="%s"?>
)rVr\�r+s r�
startDocumentzXMLGenerator.startDocument�s�����;����'�	(rc�$�|j�yr)rXris r�endDocumentzXMLGenerator.endDocument�s�����
rc���|jj|jj��||j|<|jj||f�yr)rY�appendrZ�copyr[�r+rb�uris   r�startPrefixMappingzXMLGenerator.startPrefixMapping�sM����� � ��!6�!6�!;�!;�!=�>�%+����c�"�� � �'�'���
�6rc�F�|jd|_|jd=y)NrS)rYrZ�r+rbs  r�endPrefixMappingzXMLGenerator.endPrefixMapping�s#�� $� 1� 1�"� 5������b�!rc	��|j�|jd|z�|j�D]%\}}|jd|�dt|�����'|jrd|_y|jd�y)Nr� �=Tr)rgrVrr%r]r^)r+r,�attrsr
s    r�startElementzXMLGenerator.startElement�se���*�*�,����C�$�J��"�[�[�]�M�T�5��K�K�D�)�E�*:�;�<�+��%�%�*.�D�'��K�K��rc�v�|jr|jd�d|_y|jd|z�y�Nz/>Fz</%s>re�r+r,s  rrfzXMLGenerator.endElement�s/���&�&��K�K���*/�D�'��K�K��$��'rc	���|j�|jd|j|�z�|jD]4\}}|r|jd|�d|�d���!|jd|z��6g|_|j	�D]4\}}|jd|j|��dt|�����6|jrd|_y|jd	�y)
Nrz xmlns:z="r#z xmlns="%s"rwrxTr)rgrVrcr[rr%r]r^)r+r,�qnameryrbrqr
s       r�startElementNSzXMLGenerator.startElementNS�s����*�*�,����C�$�+�+�d�+�+�,��3�3�K�F�C�������<�=����M�C�/�0�	4�
$&�� �"�[�[�]�M�T�5��K�K�D�K�K��$5�y��7G�H�I�+��%�%�*.�D�'��K�K��rc��|jr|jd�d|_y|jd|j|�z�yr|)r^rVrc�r+r,rs   r�endElementNSzXMLGenerator.endElementNS�s9���&�&��K�K���*/�D�'��K�K��$�+�+�d�"3�3�4rc��|rQ|j�t|t�st||j�}|j	t|��yyr)rgr?�strr\rVr�r+�contents  r�
characterszXMLGenerator.characters�s@����.�.�0��g�s�+��g�t�~�~�6���K�K��w��(�	rc��|rH|j�t|t�st||j�}|j	|�yyr)rgr?r�r\rVr�s  r�ignorableWhitespacez XMLGenerator.ignorableWhitespace�s<����.�.�0��g�s�+��g�t�~�~�6���K�K�� �	rc�T�|j�|jd|�d|�d��y)Nz<?rwz?>)rgrV�r+�targetrs   r�processingInstructionz"XMLGenerator.processingInstruction�s���*�*�,����6�4�0�1r)Nz
iso-8859-1F)F)r/r0r1rUrcrgrjrlrrrurzrfr�r�r�r�r�r5rrrQrQpsH��
,��"0�(��7�
"��(��$5�)�!�2rrQc��eZdZ	dd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d	�Z
d
�Zd�Zd�Z
d
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zy)�
XMLFilterBaseNc�P�tjj|�||_yr)r�	XMLReaderrU�_parent�r+�parents  rrUzXMLFilterBase.__init__�s�����$�$�T�*���rc�:�|jj|�yr)�_err_handler�error�r+�	exceptions  rr�zXMLFilterBase.error�s�������	�*rc�:�|jj|�yr)r��
fatalErrorr�s  rr�zXMLFilterBase.fatalError�s�����$�$�Y�/rc�:�|jj|�yr)r��warningr�s  rr�zXMLFilterBase.warning�s�����!�!�)�,rc�:�|jj|�yr)�
_cont_handler�setDocumentLocator)r+�locators  rr�z XMLFilterBase.setDocumentLocator�s�����-�-�g�6rc�8�|jj�yr)r�rjris rrjzXMLFilterBase.startDocument�s�����(�(�*rc�8�|jj�yr)r�rlris rrlzXMLFilterBase.endDocuments�����&�&�(rc�<�|jj||�yr)r�rrrps   rrrz XMLFilterBase.startPrefixMappings�����-�-�f�c�:rc�:�|jj|�yr)r�rurts  rruzXMLFilterBase.endPrefixMappings�����+�+�F�3rc�<�|jj||�yr)r�rz)r+r,rys   rrzzXMLFilterBase.startElement������'�'��e�4rc�:�|jj|�yr)r�rfr}s  rrfzXMLFilterBase.endElements�����%�%�d�+rc�>�|jj|||�yr)r�r�)r+r,rrys    rr�zXMLFilterBase.startElementNSs�����)�)�$��u�=rc�<�|jj||�yr)r�r�r�s   rr�zXMLFilterBase.endElementNSr�rc�:�|jj|�yr)r�r�r�s  rr�zXMLFilterBase.characterss�����%�%�g�.rc�:�|jj|�yr)r�r�)r+�charss  rr�z!XMLFilterBase.ignorableWhitespaces�����.�.�u�5rc�<�|jj||�yr)r�r�r�s   rr�z#XMLFilterBase.processingInstructions�����0�0���>rc�:�|jj|�yr)r��
skippedEntityr}s  rr�zXMLFilterBase.skippedEntity s�����(�(��.rc�>�|jj|||�yr)�_dtd_handler�notationDecl)r+r,�publicId�systemIds    rr�zXMLFilterBase.notationDecl%s�����&�&�t�X�x�@rc�@�|jj||||�yr)r��unparsedEntityDecl)r+r,r�r��ndatas     rr�z XMLFilterBase.unparsedEntityDecl(s�����,�,�T�8�X�u�Mrc�:�|jj||�Sr)�_ent_handler�
resolveEntity)r+r�r�s   rr�zXMLFilterBase.resolveEntity-s��� � �.�.�x��B�Brc��|jj|�|jj|�|jj|�|jj	|�|jj|�yr)r��setContentHandler�setErrorHandler�setEntityResolver�
setDTDHandler�parse)r+�sources  rr�zXMLFilterBase.parse2s\�����&�&�t�,����$�$�T�*����&�&�t�,����"�"�4�(������6�"rc�:�|jj|�yr)r��	setLocale)r+�locales  rr�zXMLFilterBase.setLocale9s�������v�&rc�8�|jj|�Sr)r��
getFeaturer}s  rr�zXMLFilterBase.getFeature<s���|�|�&�&�t�,�,rc�<�|jj||�yr)r��
setFeature)r+r,�states   rr�zXMLFilterBase.setFeature?s��������e�,rc�8�|jj|�Sr)r��getPropertyr}s  rr�zXMLFilterBase.getPropertyBs���|�|�'�'��-�-rc�<�|jj||�yr)r��setProperty)r+r,r
s   rr�zXMLFilterBase.setPropertyEs����� � ��u�-rc��|jSr�r�ris r�	getParentzXMLFilterBase.getParentJs���|�|�rc��||_yrr�r�s  r�	setParentzXMLFilterBase.setParentMs	����rr)r/r0r1rUr�r�r�r�rjrlrrrurzrfr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r5rrr�r��s�����+�0�-�
7�+�)�;�4�5�,�>�5�/�6�?�/�
A�N�
C�
#�'�-�-�.�.�
�rr�c�l�	t|tj�rtj|�}t|t�rtj|�}n�t|d�r�|}tj�}t|jd�t�r|j|�n|j|�t|d�r5t|jt�r|j|j�|j���'|j���|j�}tj j#tj j%|��}tj j'||�}tj j)|�r|j|�t+|d�}n\|jt,j.j1||��t,j2j5|j��}|j|�|S)N�readrr,�rb)r?�os�PathLike�fspathr�r�InputSource�hasattrr��setCharacterStream�
setByteStreamr,�setSystemId�getCharacterStream�
getByteStream�getSystemId�path�dirname�normpath�join�isfile�open�urllibr��urljoin�request�urlopen)r��base�f�sysid�basehead�
sysidfilenames      r�prepare_input_sourcer�Rs���F��&�"�+�+�&����6�"���&�#���&�&�v�.��	���	 ����&�&�(���a�f�f�Q�i��%��%�%�a�(�� � ��#��1�f��*�Q�V�V�S�"9����q�v�v�&�
� � �"�*�v�/C�/C�/E�/M��"�"�$���7�7�?�?�2�7�7�#3�#3�D�#9�:�������X�u�5�
�
�7�7�>�>�-�(����}�-��]�D�)�A����v�|�|�3�3�D�%�@�A����&�&�v�'9�'9�';�<�A����Q���Mr)�)r��urllib.parser��urllib.requestr@rBr�rrrrrr%rOrTrQr�r�r�r5rr�<module>r�sv���
(�'�	�
���
��� �&� ��.'0�Rp2�7�)�)�p2�fk�I�'�'�k�^r