o ?Og' @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||SdSdSNrlenselfindexrr9/opt/alt/python310/lib64/python3.10/xml/dom/minicompat.pyitem5s z NodeList.itemcCst|SNrr rrr _get_length9szNodeList._get_lengthcC tjdNz.attempt to modify read-only attribute 'length'xmldomNoModificationAllowedErrr valuerrr _set_length<zNodeList._set_length$The number of nodes in the NodeList.doccCs|durg}||dd<dSrr)r staterrr __setstate__DszNodeList.__setstate__N) __name__ __module__ __qualname__ __slots__rrrpropertylengthr rrrr r2s rc@sFeZdZdZddZddZddZdd Zd d Ze eed d Z dS)rrcCt}|||Srrextendr otherNLrrr __add__M zEmptyNodeList.__add__cCr'rr(r*rrr __radd__Rr.zEmptyNodeList.__radd__cCsdSrrr rrr rWzEmptyNodeList.itemcCsdSrrrrrr rZr0zEmptyNodeList._get_lengthcCrrrrrrr r]rzEmptyNodeList._set_lengthrrN) r!r"r#r$r-r/rrrr%r&rrrr rJs rcCsRt|d|}|fdd}t|d|rJd|t|||d}t|||dS)NZ_get_cSstjdt|)Nz&attempt to modify read-only attribute )rrrrepr)r rnamerrr setgs zdefproperty..setZ_set_zexpected not to find _set_r)getattrhasattrr%setattr)klassr2rgetr3Zproprrr res r) __doc____all__Zxml.domrstrrlistrtuplerrrrrr s*