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



й¼]'
ã@scddddgZddlZefZGdd„deƒZGdd„deƒZdd„Z	dS)	ÚNodeListÚ
EmptyNodeListÚStringTypesÚdefpropertyéNc@s[eZdZfZdd„Zdd„Zdd„ZeeeddƒZd	d
„Z	dS)rcCs.d|kot|ƒknr*||SdS)Nr)Úlen)ÚselfÚindex©r	ú//opt/alt/python35/lib64/python3.5/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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)
Ú__all__Zxml.domr
ÚstrrÚlistrÚtuplerrr	r	r	r
Ú<module>+s
	
Back to Directory File Manager