%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python2.7/xml/dom/
Upload File :
Create Path :
Current File : //usr/local/lib/python2.7/xml/dom/pulldom.pyo


Pac@sddlZddlZddlZyejejgZWnek
rYejgZnXdZdZ	dZ
dZdZdZ
dZd	Zd
ejjfdYZddd
YZdddYZdefdYZdZdddZddZdS(iNt
START_ELEMENTtEND_ELEMENTtCOMMENTtSTART_DOCUMENTtEND_DOCUMENTtPROCESSING_INSTRUCTIONtIGNORABLE_WHITESPACEt
CHARACTERStPullDOMcBseZdZdZddZdZdZdZdZ	dZ
dZdZdZ
d	Zd
ZdZdZd
ZdZdZdZRS(cCsddlm}||_ddg|_|j|_g|_|jj|_y|jj	|_	Wnt
k
rrnXid|6g|_|jd|_g|_
dS(Ni(t
XML_NAMESPACEtxml(txml.domR	tdocumentFactorytNonet
firstEventt	lastEventtelementStacktappendtpushtpoptAttributeErrort_ns_contextst_current_contexttpending_events(tselfRR	((s+/usr/local/lib/python2.7/xml/dom/pulldom.pyt__init__s		
cCs|jd}|jd=|S(Ni(R(Rtresult((s+/usr/local/lib/python2.7/xml/dom/pulldom.pyR's

cCs
||_dS(N(t_locator(Rtlocator((s+/usr/local/lib/python2.7/xml/dom/pulldom.pytsetDocumentLocator,scCsgt|dsg|_n|jj|p-d|f|jj|jj|pYd|j|<dS(Nt_xmlns_attrstxmlns(thasattrRRRRtcopyR
(Rtprefixturi((s+/usr/local/lib/python2.7/xml/dom/pulldom.pytstartPrefixMapping/s
cCs|jj|_dS(N(RRR(RR"((s+/usr/local/lib/python2.7/xml/dom/pulldom.pytendPrefixMapping6scCs;d}t|dd}|dk	rZx'|D]\}}||j||f<q+Wg|_n|\}}	|r|dkr|j|}
|
r|
d|	}q|	}n|jr|jj||}q|j||}n0|jr|jj|	}n|jd|	}x|j	D]\}}|\}}
||kr|
dkrQ|
}n
d|
}|jj
||}|j|nt|r|j|}
|
r|
d|
}n|
}|jj
||}|j|n|jj|
}|j
|||_qWt|fdg|jd<|jd|_|j|dS(Nshttp://www.w3.org/2000/xmlns/Rt:Rsxmlns:i(tgetattrR
t_attrsRRtdocumenttcreateElementNSt
buildDocumentt
createElementtitemstcreateAttributeNStsetAttributeNodeNStcreateAttributetsetAttributeNodetvalueRRR(RtnamettagNametattrst	xmlns_uritxmlns_attrstanameR2R#t	localnameR"tnodeta_urita_localnametqnametattr((s+/usr/local/lib/python2.7/xml/dom/pulldom.pytstartElementNS9sP
				



cCs3t|jfdg|jd<|jd|_dS(Ni(RRR
R(RR3R4((s+/usr/local/lib/python2.7/xml/dom/pulldom.pytendElementNSrscCs|jr|jj|}n|jd|}xB|jD]4\}}|jj|}||_|j|q=Wt|fdg|j	d<|j	d|_	|j
|dS(Ni(R)R,R+R
R-R0R2R1RRR(RR3R5R:R8R2R>((s+/usr/local/lib/python2.7/xml/dom/pulldom.pytstartElementvs		cCs3t|jfdg|jd<|jd|_dS(Ni(RRR
R(RR3((s+/usr/local/lib/python2.7/xml/dom/pulldom.pyt
endElementscCsm|jrG|jj|}t|fdg|jd<|jd|_n"t|fdg}|jj|dS(Ni(R)t
createCommentRR
RRR(RtsR:tevent((s+/usr/local/lib/python2.7/xml/dom/pulldom.pytcomments	cCss|jrJ|jj||}t|fdg|jd<|jd|_n%t||fdg}|jj|dS(Ni(R)tcreateProcessingInstructionRR
RRR(RttargettdataR:RE((s+/usr/local/lib/python2.7/xml/dom/pulldom.pytprocessingInstructions	cCs?|jj|}t|fdg|jd<|jd|_dS(Ni(R)tcreateTextNodeRR
R(RtcharsR:((s+/usr/local/lib/python2.7/xml/dom/pulldom.pytignorableWhitespacescCs?|jj|}t|fdg|jd<|jd|_dS(Ni(R)RKRR
R(RRLR:((s+/usr/local/lib/python2.7/xml/dom/pulldom.pyt
charactersscCs7|jdkr3ddl}|jjjj|_ndS(Ni(RR
txml.dom.minidomtdomtminidomtDocumenttimplementation(RR
((s+/usr/local/lib/python2.7/xml/dom/pulldom.pyt
startDocumentsc	Cs8|jj||d}||_t|fdg|jd<|jd|_|j|x|jD]}|ddtkr|d\}}}|jj	||}t|f|d<nX|ddt
kr|jj|dd}t
|f|d<ntd|dd||jd<||_qaWd|_|j
S(NiisUnknown pending event (RtcreateDocumentR
R)RRRRRRGRRCtAssertionErrort
firstChild(	RR#ttagnameR:tet_RHRItn((s+/usr/local/lib/python2.7/xml/dom/pulldom.pyR+s$	


	cCs*t|jfdg|jd<|jdS(Ni(RR)R
RR(R((s+/usr/local/lib/python2.7/xml/dom/pulldom.pytendDocumentscCs
d|_dS(s.clear(): Explicitly release parsing structuresN(R
R)(R((s+/usr/local/lib/python2.7/xml/dom/pulldom.pytclearsN(t__name__t
__module__R
RR)RRRR$R%R?R@RARBRFRJRMRNRTR+R\R](((s+/usr/local/lib/python2.7/xml/dom/pulldom.pyRs&					9												tErrorHandlercBs#eZdZdZdZRS(cCs	|GHdS(N((Rt	exception((s+/usr/local/lib/python2.7/xml/dom/pulldom.pytwarningscCs
|dS(N((RRa((s+/usr/local/lib/python2.7/xml/dom/pulldom.pyterrorscCs
|dS(N((RRa((s+/usr/local/lib/python2.7/xml/dom/pulldom.pyt
fatalErrors(R^R_RbRcRd(((s+/usr/local/lib/python2.7/xml/dom/pulldom.pyR`s		tDOMEventStreamcBsbeZdZdZdZdZdZdZdZdZ	dZ
d	ZRS(
cCsJ||_||_||_t|jds<|j|_n|jdS(Ntfeed(tstreamtparsertbufsizeR t_slurptgetEventtreset(RRgRhRi((s+/usr/local/lib/python2.7/xml/dom/pulldom.pyRs			cCs?t|_|jjtjjjd|jj|jdS(Ni(	RtpulldomRht
setFeatureR
tsaxthandlertfeature_namespacestsetContentHandler(R((s+/usr/local/lib/python2.7/xml/dom/pulldom.pyRlscCs |j}|r|StdS(N(Rkt
IndexError(Rtpostrc((s+/usr/local/lib/python2.7/xml/dom/pulldom.pyt__getitem__scCs |j}|r|StdS(N(Rkt
StopIteration(RRu((s+/usr/local/lib/python2.7/xml/dom/pulldom.pytnextscCs|S(N((R((s+/usr/local/lib/python2.7/xml/dom/pulldom.pyt__iter__scCs|j}|g}x|r|\}}||kr:dS|tkrZ|dj|n|tkrv|j|n|tkr|d=n|j}qWdS(Ni(RkRtappendChildRR(RR:REtparentsttokentcur_node((s+/usr/local/lib/python2.7/xml/dom/pulldom.pyt
expandNodes		
cCs|jjds%|jj|j_nxP|jjdsw|jj|j}|sd|jjdS|jj	|q(W|jjdd}|jjdd|jjd<|S(Nii(
RmRRRgtreadRiRhtcloseR
Rf(RtbufRu((s+/usr/local/lib/python2.7/xml/dom/pulldom.pyRks
cCs)|jj|j|j|_|jS(s Fallback replacement for getEvent() using the
            standard SAX2 interface, which means we slurp the
            SAX events into memory (no performance gain, but
            we are compatible to all SAX parsers).
        (RhtparseRgt_emitRk(R((s+/usr/local/lib/python2.7/xml/dom/pulldom.pyRjscCs6|jjdd}|jjdd|jjd<|S(sn Fallback replacement for getEvent() that emits
            the events that _slurp() read previously.
        ii(RmR(RRu((s+/usr/local/lib/python2.7/xml/dom/pulldom.pyRscCs)|jj|`d|_d|_dS(s+clear(): Explicitly release parsing objectsN(RmR]R
RhRg(R((s+/usr/local/lib/python2.7/xml/dom/pulldom.pyR] s
	(R^R_RRlRvRxRyR~RkRjRR](((s+/usr/local/lib/python2.7/xml/dom/pulldom.pyRes								
	tSAX2DOMcBs5eZdZdZdZdZdZRS(cCsAtj|||||jd}|jd}|j|dS(Nii(RR?RRz(RR3R4R5tcurNodet
parentNode((s+/usr/local/lib/python2.7/xml/dom/pulldom.pyR?)s

cCs>tj||||jd}|jd}|j|dS(Nii(RRARRz(RR3R5RR((s+/usr/local/lib/python2.7/xml/dom/pulldom.pyRA/s

cCsBtj||||jdd}|jd}|j|dS(Niii(RRJRRRz(RRHRIR:R((s+/usr/local/lib/python2.7/xml/dom/pulldom.pyRJ5s
cCs?tj|||jdd}|jd}|j|dS(Niii(RRMRRRz(RRLR:R((s+/usr/local/lib/python2.7/xml/dom/pulldom.pyRM;s
cCs?tj|||jdd}|jd}|j|dS(Niii(RRNRRRz(RRLR:R((s+/usr/local/lib/python2.7/xml/dom/pulldom.pyRNAs
(R^R_R?RARJRMRN(((s+/usr/local/lib/python2.7/xml/dom/pulldom.pyR's
				iiicCsd|dkrt}nt|tkr6t|}n|}|sTtjj}nt|||S(N(	R
tdefault_bufsizettypet_StringTypestopenR
Rotmake_parserRe(tstream_or_stringRhRiRg((s+/usr/local/lib/python2.7/xml/dom/pulldom.pyRJs	cCsxyddlm}Wn!tk
r7ddlm}nXt|}||}|shtjj}nt|||S(Ni(tStringIO(t	cStringIORtImportErrortlenR
RoRRe(tstringRhRRiR((s+/usr/local/lib/python2.7/xml/dom/pulldom.pytparseStringUs
((i@i?(txml.saxR
txml.sax.handlerttypest
StringTypetUnicodeTypeRRRRRRRRRRRotContentHandlerRR`ReRRR
RR(((s+/usr/local/lib/python2.7/xml/dom/pulldom.pyt<module>s*
U!

Zerion Mini Shell 1.0