f _' c@sFdZgdZddlZefZGdddeZGdddeZ dd Z dS) 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 defpropertyNc@s>eZdZdZddZddZddZeeedd Zd d Z d S) rcCs(d|krt|kr$nn||SdSNrZlenselfZindexrr+/usr/lib64/python3.10/xml/dom/minicompat.pyitem5sz NodeList.itemcCst|SNrr rrr _get_length9zNodeList._get_lengthcCtjddSNz.attempt to modify read-only attribute 'length'xmldomNoModificationAllowedErrr valuerrr _set_length<zNodeList._set_length$The number of nodes in the NodeList.doccCs|dur g}||dd<dSr r)r Zstaterrr __setstate__DszNodeList.__setstate__N) __name__ __module__ __qualname__ __slots__r rrpropertylengthrrrrr r2src@sFeZdZdZddZddZddZdd Zd d Ze eed d Z dS)rrcCt}|||Sr rZextendr ZotherZNLrrr __add__M zEmptyNodeList.__add__cCr$r r%r&rrr __radd__Rr(zEmptyNodeList.__radd__cCsdSr rrrrr r WrzEmptyNodeList.itemcCsdSrrr rrr rZrzEmptyNodeList._get_lengthcCrrrrrrr r]rzEmptyNodeList._set_lengthrrN) rrr r!r'r)r rrr"r#rrrr rJsrcCsRt|d|}|fdd}t|d|r4Jd|t|||d}t|||dS)NZ_get_cSstjdt|dS)Nz&attempt to modify read-only attribute )rrrZrepr)r rnamerrr setgs zdefproperty..setZ_set_zexpected not to find _set_r)ZgetattrZhasattrr"Zsetattr)Zklassr*rZgetr+Zproprrr res r) Z__doc__Z__all__Zxml.domrZstrrZlistrZtuplerrrrrr Zs *