B ۇ'Ń@sJdZddddgZddlZefZGdddeZGdddeZ d dZ 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||SdS)Nr)len)selfindexrr7/opt/alt/python37/lib64/python3.7/xml/dom/minicompat.pyitem5sz NodeList.itemcCst|S)N)r)rrrr _get_length9szNodeList._get_lengthcCstjddS)Nz.attempt to modify read-only attribute 'length')xmldomNoModificationAllowedErr)rvaluerrr _set_length<szNodeList._set_lengthz$The number of nodes in the NodeList.)doccCs|dkr g}||dd<dS)Nr)rstaterrr __setstate__DszNodeList.__setstate__N) __name__ __module__ __qualname__ __slots__r r rpropertylengthrrrrr r2sc@sFeZdZdZddZddZddZdd Zd d Ze eed d Z dS)rrcCst}|||S)N)rextend)rotherNLrrr __add__Ms zEmptyNodeList.__add__cCst}|||S)N)rr)rrrrrr __radd__Rs zEmptyNodeList.__radd__cCsdS)Nr)rr rrr r WszEmptyNodeList.itemcCsdS)Nrr)rrrr r ZszEmptyNodeList._get_lengthcCstjddS)Nz.attempt to modify read-only attribute 'length')r rr)rrrrr r]szEmptyNodeList._set_lengthz$The number of nodes in the NodeList.)rN) rrrrrrr r rrrrrrr rJscCsRt|d|}|fdd}t|d|r4td|t|||d}t|||dS)NZ_get_cSstjdt|dS)Nz&attempt to modify read-only attribute )r rrrepr)rrnamerrr setgszdefproperty..setZ_set_zexpected not to find _set_)r)getattrhasattrAssertionErrorrsetattr)klassr!rgetr"Zproprrr res   ) __doc____all__Zxml.domr strrlistrtuplerrrrrr s &