Your IP : 3.15.34.105


Current Path : /opt/alt/python311/lib64/python3.11/xml/etree/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/xml/etree/__pycache__/ElementInclude.cpython-311.opt-1.pyc

�

c��f����ddlZddlmZddlmZdZedzZedzZdZGd	�d
e	��Z
Gd�de
��Zdd
�Zddefd�Z
d�ZdS)�N�)�ElementTree)�urljoinz!{http://www.w3.org/2001/XInclude}�include�fallback�c��eZdZdS)�FatalIncludeErrorN��__name__�
__module__�__qualname__���?/opt/alt/python311/lib64/python3.11/xml/etree/ElementInclude.pyr
r
C��������Drr
c��eZdZdS)�LimitedRecursiveIncludeErrorNrrrrrrGrrrc�4�|dkrOt|d��5}tj|�����}ddd��n#1swxYwYnB|sd}t|d|���5}|���}ddd��n#1swxYwY|S)N�xml�rbzUTF-8�r)�encoding)�openr�parse�getroot�read)�hrefrr�file�datas     r�default_loaderr!Ws����~�~�
�$��
�
�	5���$�T�*�*�2�2�4�4�D�	5�	5�	5�	5�	5�	5�	5�	5�	5�	5�	5����	5�	5�	5�	5���	��H�
�$��h�
/�
/�
/�	�4��9�9�;�;�D�	�	�	�	�	�	�	�	�	�	�	����	�	�	�	��Ks#�'A
�
A�A�,B
�
B�Bc���|�d}n|dkrtd|z���t|d��r|���}|�t}t	||||t����dS)N���rz;expected non-negative depth or None for 'max_depth', got %rr)�
ValueError�hasattrrr!�_include�set)�elem�loader�base_url�	max_depths    rrrtsv�����	�	�	�Q����V�Yb�b�c�c�c��t�Y�����|�|�~�~��
�~����T�6�8�Y����6�6�6�6�6rc�N�d}|t|��k�r||}|jtk�r�|�d��}|rt	||��}|�dd��}|dkr�||vrtd|z���|dkrt
d|z���|�|��|||��}	|	�td|�d|�����tj|	��}	t|	|||d	z
|��|�
|��|jr|	jpd
|jz|	_|	||<n�|dkr}||||�d����}
|
�td|�d|�����|jr
|
|jz
}
|r||d	z
}	|	jpd
|
z|	_n|jpd
|
z|_||=���td
|z���|jtkrtd|jz���t|||||��|d	z
}|t|��k��dSdS)Nrrrrzrecursive include of %sz5maximum xinclude depth reached when including file %szcannot load z as r��textrz)unknown parse type in xi:include tag (%r)z0xi:fallback tag must be child of xi:include (%r))�len�tag�XINCLUDE_INCLUDE�getrr
r�add�copyr&�remove�tailr.�XINCLUDE_FALLBACK)r(r)r*r+�
_parent_hrefs�i�err�noder.s           rr&r&�s���	�A�
�c�$�i�i�-�-���G���5�$�$�$��5�5��=�=�D��
/��x��.�.���E�E�'�5�)�)�E���~�~��=�(�(�+�,E��,L�M�M�M���>�>�6�O�RV�V�X�X�X��!�!�$�'�'�'��v�d�E�*�*���<�+�+�26�$�$���>�����y�������v�t�Y��]�M�J�J�J��$�$�T�*�*�*��6�;�!%���b�A�F� :�D�I���Q����&����v�d�E�1�5�5��+<�+<�=�=���<�+�+�26�$�$���>�����6�#��A�F�N�D��9���!��9�D�!%���b�D� 8�D�I�I�!%���b�D� 8�D�I���G��'�?�%�G�����U�'�
'�
'�#�B�Q�U�J���
�
�Q���)�]�C�C�C�	�Q���g�c�$�i�i�-�-�-�-�-�-r)N)r4r-r�urllib.parser�XINCLUDEr1r7�DEFAULT_MAX_INCLUSION_DEPTH�SyntaxErrorr
rr!rr&rrr�<module>r@s���f���������� � � � � � �.���i�'���z�)�� ��	�	�	�	�	��	�	�	�	�	�	�	�	�#4�	�	�	� 	�	�	�	�:��1�7�7�7�7�6�6�6�6�6r

?>