Your IP : 13.59.58.68


Current Path : /opt/alt/python34/lib64/python3.4/xml/dom/__pycache__/
Upload File :
Current File : //opt/alt/python34/lib64/python3.4/xml/dom/__pycache__/minicompat.cpython-34.pyo

�
j f'
�@sidZddddgZddlZefZGdd�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[eZdZfZdd�Zdd�Zdd�Zeeedd�Zd	d
�Z	dS)rcCs.d|kot|�knr*||SdS)Nr)�len)�self�index�r	�7/opt/alt/python34/lib64/python3.4/xml/dom/minicompat.py�item5s"z
NodeList.itemcCs
t|�S)N)r)rr	r	r
�_get_length9szNodeList._get_lengthcCstjjd��dS)Nz.attempt to modify read-only attribute 'length')�xml�dom�NoModificationAllowedErr)r�valuer	r	r
�_set_length<s	zNodeList._set_length�docz$The number of nodes in the NodeList.cCs)|dkrg}n||dd�<dS)Nr	)r�stater	r	r
�__setstate__Ds	zNodeList.__setstate__N)
�__name__�
__module__�__qualname__�	__slots__rrr�property�lengthrr	r	r	r
r2s	c@sgeZdZfZdd�Zdd�Zdd�Zdd�Zd	d
�Ze	eedd�Z
d
S)rcCst�}|j|�|S)N)r�extend)r�other�NLr	r	r
�__add__Ms	
zEmptyNodeList.__add__cCst�}|j|�|S)N)rr)rrrr	r	r
�__radd__Rs	
zEmptyNodeList.__radd__cCsdS)Nr	)rrr	r	r
rWszEmptyNodeList.itemcCsdS)Nrr	)rr	r	r
rZszEmptyNodeList._get_lengthcCstjjd��dS)Nz.attempt to modify read-only attribute 'length')r
rr)rrr	r	r
r]s	zEmptyNodeList._set_lengthrz$The number of nodes in the NodeList.N)rrrrrrrrrrrr	r	r	r
rJscCsKt|d|�}|dd�}t||d|�}t|||�dS)NZ_get_cSs tjjdt|���dS)Nz&attempt to modify read-only attribute )r
rr�repr)rr�namer	r	r
�setgs	zdefproperty.<locals>.setr)�getattrr�setattr)�klassr!r�getr"Zpropr	r	r
res)�__doc__�__all__Zxml.domr
�strr�listr�tuplerrr	r	r	r
�<module>s&	

?>