Viewing File: /opt/alt/python35/lib64/python3.5/xml/dom/__pycache__/minicompat.cpython-35.pyc



°ÕYf'
ã@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/python35/lib64/python3.5/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}||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cCsot|d|ƒ}|dd„}t|d|ƒsFtd|ƒ‚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>.setZ_set_zexpected not to find _set_r)ÚgetattrÚhasattrÚAssertionErrorrÚsetattr)Úklassr!rÚgetr"Zpropr	r	r
res
)Ú__doc__Ú__all__Zxml.domr
ÚstrrÚlistrÚtuplerrr	r	r	r
Ú<module>s&	
Back to Directory File Manager