/usr/lib64/python3.9/xml/dom/__pycache__
NameSizeModeActions
domreg.cpython-39.opt-1.pyc28500644editdlrm
domreg.cpython-39.opt-2.pyc16480644editdlrm
domreg.cpython-39.pyc28500644editdlrm
expatbuilder.cpython-39.opt-1.pyc268010644editdlrm
expatbuilder.cpython-39.opt-2.pyc241940644editdlrm
expatbuilder.cpython-39.pyc273100644editdlrm
minicompat.cpython-39.opt-1.pyc26650644editdlrm
minicompat.cpython-39.opt-2.pyc24870644editdlrm
minicompat.cpython-39.pyc27410644editdlrm
minidom.cpython-39.opt-1.pyc560830644editdlrm
minidom.cpython-39.opt-2.pyc535660644editdlrm
minidom.cpython-39.pyc561640644editdlrm
NodeFilter.cpython-39.opt-1.pyc9690644editdlrm
NodeFilter.cpython-39.opt-2.pyc8760644editdlrm
NodeFilter.cpython-39.pyc9690644editdlrm
pulldom.cpython-39.opt-1.pyc106910644editdlrm
pulldom.cpython-39.opt-2.pyc102550644editdlrm
pulldom.cpython-39.pyc106910644editdlrm
xmlbuilder.cpython-39.opt-1.pyc124630644editdlrm
xmlbuilder.cpython-39.opt-2.pyc120340644editdlrm
xmlbuilder.cpython-39.pyc124770644editdlrm
__init__.cpython-39.opt-1.pyc55380644editdlrm
__init__.cpython-39.opt-2.pyc47430644editdlrm
__init__.cpython-39.pyc55380644editdlrm
Edit: /usr/lib64/python3.9/xml/dom/__pycache__/pulldom.cpython-39.opt-2.pyc (10255B)
a ´iÝ.ã@sŒddlZddlZdZdZdZdZdZdZdZ d Z Gd d „d ej j ƒZ Gd d „d ƒZGdd„dƒZGdd„de ƒZdZddd„Zddd„ZdS)éNÚ START_ELEMENTÚ END_ELEMENTÚCOMMENTÚSTART_DOCUMENTÚ END_DOCUMENTÚPROCESSING_INSTRUCTIONÚIGNORABLE_WHITESPACEÚ CHARACTERSc@sžeZdZdZdZd$dd„Zdd„Zdd„Zdd „Zd d „Z d d „Z dd„Z dd„Z dd„Z dd„Zdd„Zdd„Zdd„Zdd„Zdd„Zd d!„Zd"d#„ZdS)%ÚPullDOMNcCsxddlm}||_ddg|_|j|_g|_|jj|_z|jj|_Wnt yTYn0|dig|_ |j d|_ g|_ dS)Nr)Ú XML_NAMESPACEÚxmléÿÿÿÿ) Zxml.domr ÚdocumentFactoryÚ firstEventÚ lastEventÚ elementStackÚappendÚpushÚpopÚAttributeErrorÚ _ns_contextsÚ_current_contextÚpending_events)Úselfrr ©rú'/usr/lib64/python3.9/xml/dom/pulldom.pyÚ__init__s      zPullDOM.__init__cCs|jd}|jd=|S©Nr )r)rÚresultrrrr!s z PullDOM.popcCs ||_dS©N)Ú_locator)rZlocatorrrrÚsetDocumentLocator&szPullDOM.setDocumentLocatorcCsHt|dƒsg|_|j |pd|f¡|j |j ¡¡|pr?rCrGrKrLrNr.rTrUrrrrr s& 9  r c@s$eZdZdd„Zdd„Zdd„ZdS)Ú ErrorHandlercCs t|ƒdSr)Úprint©rÚ exceptionrrrÚwarningÅszErrorHandler.warningcCs|‚dSrrr[rrrÚerrorÇszErrorHandler.errorcCs|‚dSrrr[rrrÚ fatalErrorÉszErrorHandler.fatalErrorN)rVrWrXr]r^r_rrrrrYÄsrYc@s\eZdZdd„Zdd„Zdd„Zdd„Zd d „Zd d „Zd d„Z dd„Z dd„Z dd„Z dS)ÚDOMEventStreamcCs2||_||_||_t|jdƒs&|j|_| ¡dS)NÚfeed)ÚstreamÚparserÚbufsizer$Ú_slurpÚgetEventÚreset)rrbrcrdrrrrÍs  zDOMEventStream.__init__cCs.tƒ|_|j tjjjd¡|j |j¡dSr;) r ÚpulldomrcZ setFeaturer ÚsaxÚhandlerZfeature_namespacesZsetContentHandlerrSrrrrgÕszDOMEventStream.resetcCs0ddl}|jdtdd�| ¡}|r(|St‚dS)Nrz[DOMEventStream's __getitem__ method ignores 'pos' parameter. Use iterator protocol instead.é)Ú stacklevel)ÚwarningsÚwarnÚDeprecationWarningrfÚ IndexError)rÚposrmÚrcrrrÚ __getitem__ÛsüzDOMEventStream.__getitem__cCs| ¡}|r|St‚dSr)rfÚ StopIteration©rrrrrrÚ__next__èszDOMEventStream.__next__cCs|SrrrSrrrÚ__iter__îszDOMEventStream.__iter__cCsl| ¡}|g}|rh|\}}||ur&dS|tkr<|d |¡|tkrP| |¡n|tkr^|d=| ¡}qdSr)rfrÚ appendChildrr)rr8rBÚparentsÚtokenZcur_noderrrÚ expandNodeñs zDOMEventStream.expandNodecCs~|jjds|jj|j_|jjdsR|j |j¡}|sD|j ¡dS|j |¡q|jjdd}|jjdd|jjd<|S©Nr+r) rhrrrbÚreadrdrcÚclosera)rÚbufrrrrrrfs    zDOMEventStream.getEventcCs|j |j¡|j|_| ¡Sr)rcÚparserbÚ_emitrfrSrrrreszDOMEventStream._slurpcCs,|jjdd}|jjdd|jjd<|Sr|)rhrrurrrr�szDOMEventStream._emitcCs|j ¡|`d|_d|_dSr)rhrUrcrbrSrrrrU!s zDOMEventStream.clearN) rVrWrXrrgrsrvrwr{rfrer�rUrrrrr`Ìs  r`c@s4eZdZdd„Zdd„Zdd„Zdd„Zd d „Zd S) ÚSAX2DOMcCs2t ||||¡|jd}|jd}| |¡dS©Nr éþÿÿÿ)r r:rrx)rr4r5r6ÚcurNodeÚ parentNoderrrr:*s  zSAX2DOM.startElementNScCs0t |||¡|jd}|jd}| |¡dSrƒ)r r>rrx)rr4r6r…r†rrrr>0s  zSAX2DOM.startElementcCs4t |||¡|jdd}|jd}| |¡dS©Nrr+r )r rGrrrx)rrErFr8r†rrrrG6s zSAX2DOM.processingInstructioncCs2t ||¡|jdd}|jd}| |¡dSr‡)r rKrrrx©rrJr8r†rrrrK<s  zSAX2DOM.ignorableWhitespacecCs2t ||¡|jdd}|jd}| |¡dSr‡)r rLrrrxrˆrrrrLBs  zSAX2DOM.charactersN)rVrWrXr:r>rGrKrLrrrrr‚(s r‚iì?cCs@|dur t}t|tƒr"t|dƒ}n|}|s4tj ¡}t|||ƒS)NÚrb)Údefault_bufsizeÚ isinstanceÚstrÚopenr riÚ make_parserr`)Zstream_or_stringrcrdrbrrrr€Ks   r€cCs6ddlm}t|ƒ}||ƒ}|s*tj ¡}t|||ƒS)Nr)ÚStringIO)Úior�Úlenr rirŽr`)Ústringrcr�rdrrrrÚ parseStringVs   r“)NN)N)Zxml.saxr Zxml.sax.handlerrrrrrrrr riZContentHandlerr rYr`r‚rŠr€r“rrrrÚs"8\!