Hacked By AnonymousFox

Current Path : /opt/alt/python39/lib64/python3.9/xml/etree/__pycache__/
Upload File :
Current File : //opt/alt/python39/lib64/python3.9/xml/etree/__pycache__/ElementInclude.cpython-39.pyc

a

R�f��@s~ddlZddlmZddlmZdZedZedZdZGd	d
�d
e	�Z
Gdd�de
�Zdd
d�Zddefdd�Z
dd�ZdS)�N�)�ElementTree)�urljoinz!{http://www.w3.org/2001/XInclude}�includeZfallback�c@seZdZdS)�FatalIncludeErrorN��__name__�
__module__�__qualname__�rr�=/opt/alt/python39/lib64/python3.9/xml/etree/ElementInclude.pyrCsrc@seZdZdS)�LimitedRecursiveIncludeErrorNrrrrr
rGsrcCs�|dkrBt|d��}t�|���}Wd�q�1s60Yn>|sJd}t|d|d��}|��}Wd�n1sv0Y|S)N�xml�rbzUTF-8�r)�encoding)�openr�parse�getroot�read)�hrefrr�file�datarrr
�default_loaderWs.&rcCsV|durd}n|dkr"td|��t|d�r4|��}|dur@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_depthrrr
rts
cCs�d}|t|�k�r�||}|jtk�r�|�d�}|r>t||�}|�dd�}|dkr�||vrftd|��|dkrztd|��|�|�|||�}	|	dur�td||f��t�|	�}	t	|	|||d|�|�
|�|jr�|	jp�d	|j|	_|	||<n�|d
k�rz||||�d��}
|
du�r&td||f��|j�r8|
|j7}
|�r^||d}	|	j�pTd	|
|	_n|j�phd	|
|_||=qntd|��n,|jt
k�r�td
|j��nt	|||||�|d7}qdS)Nrrrrzrecursive include of %sz5maximum xinclude depth reached when including file %szcannot load %r as %rr��textrz)unknown parse type in xi:include tag (%r)z0xi:fallback tag must be child of xi:include (%r))�len�tag�XINCLUDE_INCLUDE�getrrr�add�copyr�remove�tailr%�XINCLUDE_FALLBACK)r r!r"r#Z
_parent_hrefs�i�errZnoder%rrr
r�sd

�


�





�
��r)N)r+r$rZurllib.parserZXINCLUDEr(r.ZDEFAULT_MAX_INCLUSION_DEPTH�SyntaxErrorrrrrrrrrr
�<module>3s
�


Hacked By AnonymousFox1.0, Coded By AnonymousFox