Your IP : 3.137.221.252


Current Path : /opt/alt/python312/lib64/python3.12/xml/dom/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/xml/dom/__pycache__/minicompat.cpython-312.pyc

�

�Q�f'
��P�dZgd�ZddlZefZGd�de�ZGd�de�Z	d�Z
y)	z�Python version compatibility support for minidom.

This module contains internal implementation details and
should not be imported; use xml.dom.minidom instead.
)�NodeList�
EmptyNodeList�StringTypes�defproperty�Nc�>�eZdZdZd�Zd�Zd�Zeeed��Zd�Z	y)	r�c�:�d|cxkrt|�kr||Syy�Nr��len��self�indexs  �9/opt/alt/python312/lib64/python3.12/xml/dom/minicompat.py�itemz
NodeList.item5s"����!��D�	�!���;��"�c��t|�S�Nr�rs r�_get_lengthzNodeList._get_length9s���4�y�rc�@�tjjd���Nz.attempt to modify read-only attribute 'length'��xml�dom�NoModificationAllowedErr�r�values  r�_set_lengthzNodeList._set_length<����g�g�.�.�<�>�	>r�$The number of nodes in the NodeList.��docc��|�g}||ddyrr)r�states  r�__setstate__zNodeList.__setstate__Ds���=��E���Q�rN)
�__name__�
__module__�__qualname__�	__slots__rrr�property�lengthr&rrrrr2s/���I���>��k�;�@�B�F�rrc�D�eZdZdZd�Zd�Zd�Zd�Zd�Ze	eed��Z
y	)
rrc�<�t�}|j|�|Sr�r�extend�r�other�NLs   r�__add__zEmptyNodeList.__add__M���
�Z��
�	�	�%���	rc�<�t�}|j|�|Srr/r1s   r�__radd__zEmptyNodeList.__radd__Rr5rc��yrrr
s  rrzEmptyNodeList.itemWs��rc��yr
rrs rrzEmptyNodeList._get_lengthZs��rc�@�tjjd��rrrs  rrzEmptyNodeList._set_length]r rr!r"N)r'r(r)r*r4r7rrrr+r,rrrrrJs4���I��
�
��>��k�;�@�B�Frrc��t|d|z�}|fd�}t|d|z�r
Jd|z��t|||��}t|||�y)N�_get_c�X�tjjdt|�z��)Nz&attempt to modify read-only attribute )rrr�repr)rr�names   r�setzdefproperty.<locals>.setgs'���g�g�.�.�4�t�D�z�A�C�	Cr�_set_zexpected not to find _set_r")�getattr�hasattrr+�setattr)�klassr?r#�getr@�props      rrresZ��
�%�'�D�.�
*�C�"�C��u�g��n�-�/�'�$�.�/�-��C��#�&�D��E�4��r)�__doc__�__all__�xml.domr�strr�listr�tuplerrrrr�<module>rNs<���TF����f���t��0B�E�B�6r

?>