Your IP : 3.21.244.34


Current Path : /usr/lib64/python3.8/xml/dom/__pycache__/
Upload File :
Current File : //usr/lib64/python3.8/xml/dom/__pycache__/domreg.cpython-38.opt-2.pyc

U

e5d{
�@s<ddlZddd�ZiZdd�Zdd�Zdd
d�Zdd
�ZdS)�Nzxml.dom.minidomzxml.dom.DOMImplementation)ZminidomZ4DOMcCs|t|<dS)N)�
registered)�name�factory�r�&/usr/lib64/python3.8/xml/dom/domreg.py�registerDOMImplementations	rcCs$|D]\}}|�||�sdSqdS)Nr�)Z
hasFeature)�dom�features�f�vrrr�_good_enough sr
rc	Cs�ddl}d}t�|�}|r2t|iidg�}|��S|r@t|�Stjjsbd|j	krbt|j	dd�St
|t�rtt|�}t�
�D]}|�}t||�r||Sq|t��D]>}zt|d�}Wntk
r�Yq�YnXt||�r�|Sq�td��dS)Nr�getDOMImplementationZ
PYTHON_DOM)rz$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}|��}d}t|�}||kr�||}|ddkrBtd|f��|d}d}||krv||}|ddkrv|d}|}|�||f�qt|�S)Nr�
0123456789zbad feature name: %rr)�split�len�
ValueError�append�tuple)�sr
�parts�iZlengthZfeature�versionrrrrrRs"r)Nr)rrrrr
rrrrrr�<module>	s�
+

?>