AlkantarClanX12

Your IP : 3.135.216.196


Current Path : /proc/self/root/opt/alt/python35/lib64/python3.5/xml/dom/__pycache__/
Upload File :
Current File : //proc/self/root/opt/alt/python35/lib64/python3.5/xml/dom/__pycache__/domreg.cpython-35.opt-2.pyc



���]{
�@s^ddlZddddiZiZdd�Zdd	�Zdfd
d�Zdd
�ZdS)�NZminidomzxml.dom.minidomZ4DOMzxml.dom.DOMImplementationcCs|t|<dS)N)�
registered)�name�factory�r�+/opt/alt/python35/lib64/python3.5/domreg.py�registerDOMImplementations	rcCs1x*|D]"\}}|j||�sdSqWdS)Nr�)Z
hasFeature)�dom�features�f�vrrr�_good_enough sr
cCs=ddl}d}tj|�}|rIt|iidg�}|j�S|rZt|�Stjjr�d|j	kr�td|j	d�St
|t�r�t|�}x0tj
�D]"}|�}t||�r�|Sq�WxRtj�D]D}ytd|�}Wntk
rw�YnXt||�r�|Sq�Wtd��dS)Nr�getDOMImplementationZ
PYTHON_DOMrz$no suitable DOM implementation found)�os�well_known_implementations�get�
__import__rr�sys�flags�ignore_environment�environ�
isinstance�str�_parse_feature_string�valuesr
�keys�	Exception�ImportError)rr
rZcreator�modr	rrrr's0

	
rcCs�g}|j�}d}t|�}x�||kr�||}|ddkr`td|f��|d}d}||kr�||}|ddkr�|d}|}|j||f�q'Wt|�S)Nr�
0123456789zbad feature name: %rr)�split�len�
ValueError�append�tuple)�sr
�parts�i�lengthZfeature�versionrrrrrRs"



r)rrrrr
rrrrrr�<module>	s+