mς &U²Ic@sΊdZddddddgZdkZyeWn"ej oedƒfZn XedƒeedƒƒfZyeWn2ej o&d Zd Z ei d d gƒnXye deƒWn/e j o#e Z d „Z eidƒnXeegƒjo0defd„ƒYZdefd„ƒYZnd„Zd„ZyeWnBej o6d„Zdfd„ƒYZdfd„ƒYZn$Xd„Zdfd„ƒYZeZdS(s1Python version compatibility support for minidom.tNodeListt EmptyNodeListtNewStylet StringTypest defpropertyt GetattrMagicNtiitTruetFalsecCsXyt||ƒSWn@tj o4x&|D]}t||ƒodSq)q)WdSnXdS(Nii(t _isinstancetobjt type_or_seqt TypeErrortt(R R R ((t//data/zmath/lib/python2.4/xml/dom/minicompat.pyt isinstancePs RcBsPtZfZd„Zd„Zd„ZeeeddƒZd„Zd„Z RS(NcCs4d|jot|ƒjno ||SndS(Ni(tindextlentself(RR((Rtitem_s$cCs t|ƒS(N(RR(R((Rt _get_lengthcscCstiidƒ‚dS(Ns.attempt to modify read-only attribute 'length'(txmltdomtNoModificationAllowedErr(Rtvalue((Rt _set_lengthfstdocs$The number of nodes in the NodeList.cCs t|ƒS(N(tlistR(R((Rt __getstate__mscCs ||(dS(N(tstateR(RR((Rt __setstate__ps( t__name__t __module__t __slots__RRRtpropertytlengthRR(((RR\s      cBsPtZfZd„Zd„Zd„Zd„Zd„ZeeeddƒZ RS(NcCstƒ}|i|ƒ|S(N(RtNLtextendtother(RR&R$((Rt__add__vs  cCstƒ}|i|ƒ|S(N(RR$R%R&(RR&R$((Rt__radd__{s  cCsdS(N(tNone(RR((RR€scCsdS(Ni((R((RRƒscCstiidƒ‚dS(Ns.attempt to modify read-only attribute 'length'(RRR(RR((RR†sRs$The number of nodes in the NodeList.( RR R!R'R(RRRR"R#(((RRss      cCsgS(N((((RRŽscCsgS(N((((RR‘scCsdS(N((tklasstnameR((RR˜scBstZd„ZRS(NcCsZ|idƒo t|‚nyt|d|ƒ}Wntj ot|‚nX|ƒS(Nt_t_get_(tkeyt startswithtAttributeErrortgetattrRtget(RR.R2((Rt __getattr__s (RR R3(((RRœscBstZRS(N(RR (((RR§scCsnt|d|ƒi}|d„}t|d|ƒ ptd|‚t||d|ƒ}t |||ƒdS(NR-cCs tiidt|ƒƒ‚dS(Ns&attempt to modify read-only attribute (RRRtreprR+(RRR+((Rtset­st_set_sexpected not to find _set_R( R1R*R+tim_funcR2R5thasattrtAssertionErrorR"Rtproptsetattr(R*R+RR5R2R:((RR«s  #cBstZRS(N(RR (((RR΅s(t__doc__t__all__txml.domRtunicodet NameErrorttypeRRRR%RR R tappendRRttupleRR"RRRtobject( RRRRR=RRRR RRR((Rt?sB1