
    Rh'                     P    d Z g dZddlZefZ G d de      Z G d de      Z	d Z
y)	zPython 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                   >    e Zd ZdZd Zd Zd Z eeed      Zd Z	y)	r    c                 :    d|cxk  rt        |       k  r| |   S  y y Nr   lenselfindexs     )/usr/lib/python3.12/xml/dom/minicompat.pyitemzNodeList.item5   s"    !D	!; "    c                     t        |       S Nr   r   s    r   _get_lengthzNodeList._get_length9   s    4yr   c                 @    t         j                  j                  d      Nz.attempt to modify read-only attribute 'length'xmldomNoModificationAllowedErrr   values     r   _set_lengthzNodeList._set_length<       gg..<> 	>r   $The number of nodes in the NodeList.docc                     |g }|| d d  y r   r   )r   states     r   __setstate__zNodeList.__setstate__D   s    =EQr   N)
__name__
__module____qualname__	__slots__r   r   r   propertylengthr&   r   r   r   r   r   2   s/    I> k;@BFr   r   c                   D    e Zd ZdZd Zd Zd Zd Zd Z e	eed      Z
y	)
r   r   c                 <    t               }|j                  |       |S r   r   extendr   otherNLs      r   __add__zEmptyNodeList.__add__M       Z
		%	r   c                 <    t               }|j                  |       |S r   r/   r1   s      r   __radd__zEmptyNodeList.__radd__R   r5   r   c                      y r   r   r   s     r   r   zEmptyNodeList.itemW   s    r   c                      yr
   r   r   s    r   r   zEmptyNodeList._get_lengthZ   s    r   c                 @    t         j                  j                  d      r   r   r   s     r   r   zEmptyNodeList._set_length]   r    r   r!   r"   N)r'   r(   r)   r*   r4   r7   r   r   r   r+   r,   r   r   r   r   r   J   s4    I

> k;@BFr   r   c                     t        | d|z         }|fd}t        | d|z         r
J d|z          t        |||      }t        | ||       y )N_get_c                 X    t         j                  j                  dt        |      z         )Nz&attempt to modify read-only attribute )r   r   r   repr)r   r   names      r   setzdefproperty.<locals>.setg   s'    gg..4tDzAC 	Cr   _set_zexpected not to find _set_r"   )getattrhasattrr+   setattr)klassr?   r#   getr@   props         r   r   r   e   sZ    
%'D.
*C" C ugn- /'$./-C#&DE4r   )__doc____all__xml.domr   strr   listr   tupler   r   r   r   r   <module>rN      s<   T F ft 0BE B6r   