B YI~d' �@sFddddgZddlZefZGdd�de�ZGdd�de�Zdd�Z dS) �NodeList� EmptyNodeList� StringTypes� defproperty�Nc@s>eZdZdZdd�Zdd�Zdd�Zeeedd �Zd d �Z d S) r�cCs(d|krt|�kr$nn||SdS)Nr)�len)�self�indexrr�7/opt/alt/python37/lib64/python3.7/xml/dom/minicompat.py�item5sz NodeList.itemcCst|�S)N)r)rrrr � _get_length9szNodeList._get_lengthcCstj�d��dS)Nz.attempt to modify read-only attribute 'length')�xml�dom�NoModificationAllowedErr)r�valuerrr � _set_length<szNodeList._set_lengthz$The number of nodes in the NodeList.)�doccCs|dkr g}||dd�<dS)Nr)r�staterrr � __setstate__DszNodeList.__setstate__N) �__name__� __module__� __qualname__� __slots__r r r�property�lengthrrrrr r2sc@sFeZdZdZdd�Zdd�Zdd�Zdd �Zd d �Ze eed d �Z dS)rrcCst�}|�|�|S)N)r�extend)r�other�NLrrr �__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_lengthcCstj�d��dS)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 rJscCs8t|d|�}|fdd�}t|||d�}t|||�dS)NZ_get_cSstj�dt|���dS)Nz&attempt to modify read-only attribute )r rr�repr)rr�namerrr �setgszdefproperty..set)r)�getattrr�setattr)�klassr!r�getr"Zproprrr res ) �__all__Zxml.domr �strr�listr�tuplerrrrrr �+s