• File: minicompat.cpython-37.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/proc/self/root/opt/alt/python37/lib64/python3.7/xml/dom/__pycache__/minicompat.cpython-37.pyc
  • Date Modified: 10/26/2026 8:08 PM
  • File size: 2.75 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

Mj'
@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
EmptyNodeListStringTypesdefpropertyNc@s>eZdZdZddZddZddZeeedd	Zd
dZ	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__rrrpropertylengthrrrrr
r2sc@sFeZdZdZddZddZddZdd	Zd
dZe	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
rWszEmptyNodeList.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)rrrrrrrr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.<locals>.setZ_set_zexpected not to find _set_)r)getattrhasattrAssertionErrorrsetattr)klassr!rgetr"Zproprrr
res
)__doc____all__Zxml.domr
strrlistrtuplerrrrrr
<module>s&