ok

Mini Shell

Direktori : /opt/alt/python36/lib64/python3.6/xml/etree/__pycache__/
Upload File :
Current File : //opt/alt/python36/lib64/python3.6/xml/etree/__pycache__/ElementInclude.cpython-36.opt-2.pyc

3

��2a�@sPddlZddlmZdZedZedZGdd�de�Zdd	d
�Zd
dd�Z	dS)�N�)�ElementTreez!{http://www.w3.org/2001/XInclude}�include�fallbackc@seZdZdS)�FatalIncludeErrorN)�__name__�
__module__�__qualname__�r
r
�3/opt/alt/python36/lib64/python3.6/ElementInclude.pyr>src	Cs\|dkr.t|d��}tj|�j�}WdQRXn*|s6d}t|d|d��}|j�}WdQRX|S)N�xml�rbzUTF-8�r)�encoding)�openr�parseZgetroot�read)�hrefrr�file�datar
r
r�default_loaderMsrcCsp|dkrt}d}�xX|t|�k�rj||}|jtk�r:|jd�}|jdd�}|dkr�|||�}|dkrvtd||f��tj|�}|jr�|jp�d|j|_|||<n�|dk�r,||||jd��}|dkr�td||f��|�r||d	}|jp�d||jp�d|_n|j�pd||j�pd|_||=qntd
|��n&|jt	k�rVtd|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





)N)N)
rrrZXINCLUDErr�SyntaxErrorrrrr
r
r
r�<module>3s


Zerion Mini Shell 1.0