ok

Mini Shell

Direktori : /proc/self/root/opt/alt/python37/lib64/python3.7/xml/dom/__pycache__/
Upload File :
Current File : //proc/self/root/opt/alt/python37/lib64/python3.7/xml/dom/__pycache__/minicompat.cpython-37.pyc

B

�x�c'
�@sJdZddddgZddlZefZGdd�de�ZGdd�de�Z	d	d�Z
dS)
z�Python version compatibility support for minidom.

This module contains internal implementation details and
should not be imported; use xml.dom.minidom instead.
�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__rr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
rWszEmptyNodeList.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)rrrrrrrrrrrrrrr
rJscCsRt|d|�}|fdd�}t|d|�r4td|��t|||d�}t|||�dS)NZ_get_cSstj�dt|���dS)Nz&attempt to modify read-only attribute )r
rr�repr)rr�namerrr
�setgszdefproperty.<locals>.setZ_set_zexpected not to find _set_)r)�getattr�hasattr�AssertionErrorr�setattr)�klassr!r�getr"Zproprrr
res
)�__doc__�__all__Zxml.domr
�strr�listr�tuplerrrrrr
�<module>s&

Zerion Mini Shell 1.0