Your IP : 3.139.234.68


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.pyc



��Yf�@snddlZddlmZdZedZedZGdd�de�Zdd	d
�Zddd�Z	dS)�N�)�ElementTreez!{http://www.w3.org/2001/XInclude}�includeZfallbackc@seZdZdS)�FatalIncludeErrorN)�__name__�
__module__�__qualname__�r	r	�=/opt/alt/python35/lib64/python3.5/xml/etree/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)Nrrrrzcannot 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	r
rcsF
	
&#
)
rrrZXINCLUDErr�SyntaxErrorrrrr	r	r	r
�<module>3s



?>