HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.10/xml/etree/__pycache__/ElementInclude.cpython-310.opt-2.pyc
o

�i��@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}�include�fallback�c@�eZdZdS)�FatalIncludeErrorN��__name__�
__module__�__qualname__�rr�5/usr/local/lib/python3.10/xml/etree/ElementInclude.pyr	C�r	c@r)�LimitedRecursiveIncludeErrorNr
rrrrrGrrcCs�|dkr#t|d��}t�|���}Wd�|S1swY|S|s'd}t|d|d��
}|��}Wd�|S1s>wY|S)N�xml�rbzUTF-8�r)�encoding)�openr�parse�getroot�read)�hrefrr�file�datarrr�default_loaderWs
���

��rcCsV|durd}n
|dkrtd|��t|d�r|��}|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_depthrrrrts
cCs�d}|t|�kr�||}|jtkr�|�d�}|rt||�}|�dd�}|dkrv||vr1td|��|dkr;td|��|�|�|||�}	|	durQtd||f��t�|	�}	t	|	|||d|�|�
|�|jrq|	jpld	|j|	_|	||<nX|d
kr�||||�d��}
|
dur�td||f��|jr�|
|j7}
|r�||d}	|	jp�d	|
|	_n|jp�d	|
|_||=qtd|��|jt
kr�td
|j��t	|||||�|d7}|t|�ksdSdS)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�getrr	r�add�copyr!�remove�tailr(�XINCLUDE_FALLBACK)r#r$r%r&Z
_parent_hrefs�i�errZnoder(rrrr!�sf


�


�



�
�
��r!)N)r.r'r�urllib.parserZXINCLUDEr+r1ZDEFAULT_MAX_INCLUSION_DEPTH�SyntaxErrorr	rrrr!rrrr�<module>s2

�