HEX
Server: Apache
System: Linux vps.rockyroadprinting.net 4.18.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User: rockyroadprintin (1011)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib64/python2.7/site-packages/lxml/ElementInclude.pyo
�
�0�Zc@s�dZddlmZy$ddlmZddlmZWn1ek
rmddlmZddl	mZnXdZ
e
dZe
dZe
dZ
d	ejfd
��YZdd�Zddd�Zd
�Zddd�Zdddd�ZdS(s
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.
i����(tetree(turljoin(turlopens!{http://www.w3.org/2001/XInclude}tincludetfallbackt*tFatalIncludeErrorcBseZRS((t__name__t
__module__(((s9/usr/lib64/python2.7/site-packages/lxml/ElementInclude.pyRGscCskt|d�}|dkr3tj|�j�}n*|j�}|sNd}n|j|�}|j�|S(Ntrbtxmlsutf-8(topenRtparsetgetroottreadtdecodetclose(threfRtencodingtfiletdata((s9/usr/lib64/python2.7/site-packages/lxml/ElementInclude.pytdefault_loaderWs	
cCs�|dkr'tj||�j�}n^d|krBt|�}nt|d�}|j�}|j�|svd}n|j|�}|S(NR
s://R	sutf-8(RRR
RRRRR(RRRtparserRtf((s9/usr/lib64/python2.7/site-packages/lxml/ElementInclude.pyt_lxml_default_loadergs
	csdd�fd�}|S(Ncs�|||�S(N((RRRR(tloader(s9/usr/lib64/python2.7/site-packages/lxml/ElementInclude.pytloadzs(tNone(RR((Rs9/usr/lib64/python2.7/site-packages/lxml/ElementInclude.pyt_wrap_et_loaderyscCs�|dkr]t|d�r0|}|j�}n|j�}t|d�r{|jj}q{nt|d�r{|j�}nt||d|�dS(NR
tdocinfotbase_url(RthasattrR
tgetroottreeRtURLt_include(telemRRttree((s9/usr/lib64/python2.7/site-packages/lxml/ElementInclude.pyR�scCs�|dk	rt|�}nt}|dkr9t�}n|j�j}t|jt��}xW|D]O}|j	t
krQt||jd��}|jdd�}	|j
�}
|	dkr{||kr�td|��n|j|�|||	d|�}|dkr!td||	f��nt|||�}|jrX|jpHd|j|_n|
dkrh|S|
j||�q�|	dkr>|||	d	|jd	��}|dkr�td||	f��n|j�}
|
dk	r�|
jp�d||
_n3|
dkr|S|
jpd||jp'd|
_|
j|�q�td
|	��qd|j	tkr�|j
�}
|
dk	r�|
j	t
kr�td|j	��q�qdtd|j	��qdW|S(
NRRR
s recursive include of %r detectedRscannot load %r as %rtttextRs)unknown parse type in xi:include tag (%r)s0xi:fallback tag must be child of xi:include (%r)s0Invalid element found in XInclude namespace (%r)(RRRtsetR RtlisttitertXINCLUDE_ITER_TAGttagtXINCLUDE_INCLUDERtgett	getparentRtaddR"ttailtreplacetgetpreviousR&tremovetXINCLUDE_FALLBACK(R#Rt
_parent_hrefsRtload_includeRtinclude_elementsteRRtparenttnodeR&tpredecessor((s9/usr/lib64/python2.7/site-packages/lxml/ElementInclude.pyR"�sd

	#N(t__doc__tlxmlRturlparseRturllib2RtImportErrorturllib.parseturllib.requesttXINCLUDER,R4R*tLxmlSyntaxErrorRRRRRRR"(((s9/usr/lib64/python2.7/site-packages/lxml/ElementInclude.pyt<module>3s"