%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3.12/xml/etree/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3.12/xml/etree/__pycache__/ElementInclude.cpython-312.pyc

�

���f����ddlZddlmZddlmZdZedzZedzZdZGd	�d
e	�Z
Gd�de
�Zdd
�Zddefd�Z
d�Zy)�N�)�ElementTree)�urljoinz!{http://www.w3.org/2001/XInclude}�include�fallback�c��eZdZy)�FatalIncludeErrorN��__name__�
__module__�__qualname__���//usr/lib/python3.12/xml/etree/ElementInclude.pyr
r
C���rr
c��eZdZy)�LimitedRecursiveIncludeErrorNrrrrrrGrrrc��|dk(r:t|d�5}tj|�j�}ddd�|S|sd}t|d|��5}|j	�}ddd�|S#1swYSxYw#1swYSxYw)N�xml�rbzUTF-8�r)�encoding)�openr�parse�getroot�read)�hrefrr�file�datas     r�default_loaderr!Ws�����~�
�$��
�	5���$�$�T�*�2�2�4�D�	5��K�	��H�
�$��h�
/�	�4��9�9�;�D�	��K�	5��K��	��K�s�$A-�A:�-A7�:Bc��|�d}n|dkrtd|z��t|d�r|j�}|�t}t	||||t��y)N���rz;expected non-negative depth or None for 'max_depth', got %rr)�
ValueError�hasattrrr!�_include�set)�elem�loader�base_url�	max_depths    rrrtsW�����	�	�Q���V�Yb�b�c�c��t�Y���|�|�~��
�~����T�6�8�Y���6rc��d}|t|�k�r�||}|jtk(�r�|jd�}|rt	||�}|jdd�}|dk(r�||vrtd|z��|dk(rt
d|z��|j|�|||�}	|	�td|�d|����tj|	�}	t|	|||d	z
|�|j|�|jr"|	jxsd
|jz|	_|	||<n�|dk(r�||||jd��}
|
�td|�d|����|jr|
|jz
}
|r!||d	z
}	|	jxsd
|
z|	_n|jxsd
|
z|_||=���td
|z��|jtk(rtd|jz��t|||||�|d	z
}|t|�kr���yy)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�-���G���5�5�$�$��5�5��=�D���x��.���E�E�'�5�)�E���~��=�(�+�,E��,L�M�M���>�6�O�RV�V�X�X��!�!�$�'��d�E�*���<�+�26��>����y�y������v�t�Y��]�M�J��$�$�T�*��6�6�!%����b�A�F�F� :�D�I���Q���&���d�E�1�5�5��+<�=���<�+�26��>����6�6��A�F�F�N�D����!��9�D�!%����b�D� 8�D�I�!%����b�D� 8�D�I���G��'�?�%�G����U�U�'�
'�#�B�Q�U�U�J��
�
�Q���)�]�C�	�Q���g�c�$�i�-r)N)r4r-r�urllib.parser�XINCLUDEr1r7�DEFAULT_MAX_INCLUSION_DEPTH�SyntaxErrorr
rr!rr&rrr�<module>r@sf��f�� �.���i�'���z�)�� ��	��	�	�#4�	� 	�:��1�7�6r

Zerion Mini Shell 1.0