CasperSecurity

Current Path : /usr/lib/python3.10/xml/etree/__pycache__/
Upload File :
Current File : //usr/lib/python3.10/xml/etree/__pycache__/ElementInclude.cpython-310.pyc

o

`�wi��@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�//usr/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&�
_parent_hrefs�i�err�noder(rrrr!�sf


�


�



�
�
��r!)N)r.r'r�urllib.parser�XINCLUDEr+r1�DEFAULT_MAX_INCLUSION_DEPTH�SyntaxErrorr	rrrr!rrrr�<module>s2

�
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY