Your IP : 18.191.218.186


Current Path : /opt/alt/python313/lib64/python3.13/xml/dom/__pycache__/
Upload File :
Current File : //opt/alt/python313/lib64/python3.13/xml/dom/__pycache__/domreg.cpython-313.pyc

�

2}g{
��:�SrSSKrSSS.r0rSrSrS
SjrS	rg)z�Registration facilities for DOM. This module should not be used
directly. Instead, the functions getDOMImplementation and
registerDOMImplementation should be imported from xml.dom.�Nzxml.dom.minidomzxml.dom.DOMImplementation)�minidom�4DOMc��U[U'g)a5registerDOMImplementation(name, factory)

Register the factory function with the name. The factory function
should return an object which implements the DOMImplementation
interface. The factory function can either return the same object,
or a new one (e.g. if that implementation supports some
customization).N)�
registered)�name�factorys  �5/opt/alt/python313/lib64/python3.13/xml/dom/domreg.py�registerDOMImplementationr
s���J�t��c�J�UHup#URX#5(aM g g)zF_good_enough(dom, features) -> Return 1 if the dom offers the featuresr�)�
hasFeature)�dom�features�f�vs    r	�_good_enoughr s%������~�~�a�"�"���
rc��SSKnSn[RU5nU(a[U00S/5nUR	5$U(a[
U"5$[RR(d&SUR;a[	URSS9$[U[5(a[U5n[
R5HnU"5n[XQ5(dMUs $ [R5H!n[	US9n[XQ5(dMUs $ [#S5e![ a M=f=f)a3getDOMImplementation(name = None, features = ()) -> DOM implementation.

Return a suitable DOM implementation. The name is either
well-known, the module name of a DOM implementation, or None. If
it is not None, imports the corresponding module and returns
DOMImplementation object if the import succeeds.

If name is not given, consider the available implementations to
find one with the required feature set. If no implementation can
be found, raise an ImportError. The features list must be a sequence
of (feature, version) pairs which are passed to hasFeature.rN�getDOMImplementation�
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)rrr�creator�modrs      r	rr's����G�
$�
(�
(��
.�C�
���b�"�'=�&>�?���'�'�)�)�	
��$��!�!�
�Y�Y�
)�
)�l�b�j�j�.H�#�2�:�:�l�+C�D�D��(�C� � �(��2���$�$�&���i����&�&��J�'�
.�2�2�4��	�&�g�6�C���&�&��J�
5��<�
=�=���	��	�s�
	D6�6
E�Ec�
�/nUR5nSn[U5nX4:aUX#nUSS;a[SU<35eUS-nSnX4:aX#nUSS;aUS-nUnURXV45 X4:aMU[	U5$)Nr�
0123456789zbad feature name: r
)�split�len�
ValueError�append�tuple)�sr�parts�i�length�feature�versionrs        r	r!r!Rs����H�
�G�G�I�E�	�A�
��Z�F�
�*��(���1�:��%��w�@�A�A�
��E�����:���A���t�|�#���E��������*�+��*���?�r)N�)�__doc__rrrr
rrr!r5rr	�<module>r7s;��>�� �'����
�	�
�)>�Vr

?>