BŠMa' ã@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 d S) 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….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 Ús &