Hacked By AnonymousFox

Current Path : /opt/alt/python35/lib64/python3.5/xml/etree/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/xml/etree/__pycache__/ElementInclude.cpython-35.opt-2.pyc



���]�@snddlZddlmZdZedZedZGdd�de�Zdd	d
�Zddd�Z	dS)�N�)�ElementTreez!{http://www.w3.org/2001/XInclude}�include�fallbackc@seZdZdS)�FatalIncludeErrorN)�__name__�
__module__�__qualname__�r
r
�3/opt/alt/python35/lib64/python3.5/ElementInclude.pyr>src	Csx|dkr=t|d��}tj|�j�}WdQRXn7|sId}t|dd|��}|j�}WdQRX|S)N�xml�rbzUTF-8�r�encoding)�openr�parseZgetroot�read)�hrefrr�file�datar
r
r�default_loaderMsrcCs�|dkrt}d}x�|t|�kr�||}|jtkr�|jd�}|jdd�}|dkr�|||�}|dkr�td||f��tj|�}|jr�|jp�d|j|_|||<q�|dkr�||||jd��}|dkr+td||f��|re||d	}|jpKd||jp[d|_n#|jpqd||jp�d|_||=qq�td
|��n2|jt	kr�td|j��n
t
||�|d	}qWdS)Nrrrrzcannot load %r as %r��textrrz)unknown parse type in xi:include tag (%r)z0xi:fallback tag must be child of xi:include (%r))r�len�tag�XINCLUDE_INCLUDE�getr�copy�tailr�XINCLUDE_FALLBACKr)�elem�loader�i�errZnoderr
r
rrcsF
	
&#
)
rrrZXINCLUDErr�SyntaxErrorrrrr
r
r
r�<module>3s



Hacked By AnonymousFox1.0, Coded By AnonymousFox