%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/expatbuilder.pyo


Pac@sdZddlmZmZmZddlmZmZmZddlm	Z	ddl
mZmZddl
mZddlTejZejZejZejjZejjZejjZejjZejZi	ejedd	6ejed
d6ejedd
6ejedd6ejedd6ejedd6ejedd6ejedd6ejedd6ZdefdYZdZdZ dfdYZ!eeefZ"d efd!YZ#d"efd#YZ$d$e$fd%YZ%d&e$fd'YZ&d(Z'd)e'Z(d*e!fd+YZ)d,fd-YZ*d.e*e!fd/YZ+d0e*e)fd1YZ,d2e-fd3YZ.d4e!fd5YZ/e0d6Z1e0d7Z2e0d8Z3e0d9Z4d:Z5d;S(<sFacility to use the Expat parser to load a minidom instance
from a string or file.

This avoids all the overhead of SAX and pulldom to gain performance.
i(t
xmlbuildertminidomtNode(tEMPTY_NAMESPACEtEMPTY_PREFIXtXMLNS_NAMESPACE(texpat(t
_append_childt_set_attribute_node(t
NodeFilter(t*tcdatatCDATAtenumerationtENUMtentitytENTITYtentitiestENTITIEStidtIDtidreftIDREFtidrefstIDREFStnmtokentNMTOKENtnmtokenstNMTOKENStElementInfocBsbeZdZd
dZdZdZdZdZdZ	d	Z
d
ZdZRS(t
_attr_infot_modelttagNamecCs||_g|_||_dS(N(R RR(tselfR tmodel((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyt__init__As		cCs|j|j|jfS(N(RRR (R!((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyt__getstate__FscCs|\|_|_|_dS(N(RRR (R!tstate((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyt__setstate__IscCs\xR|jD]G}|d|kr
|d}|ddkrBtdSt|dSq
q
WtjS(Niiit(R(Rt
_typeinfo_mapRt_no_type(R!tanametinfott((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pytgetAttributeTypeLs
cCstjS(N(RR)(R!tnamespaceURIt	localName((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pytgetAttributeTypeNSVscCs:|jr2|jd}|tjjtjjfkStSdS(Ni(RRR"t
XML_CTYPE_ANYtXML_CTYPE_MIXEDtFalse(R!ttype((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pytisElementContentYs
	
cCs(|jr |jdtjjkStSdS(Ni(RRR"tXML_CTYPE_EMPTYR3(R!((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pytisEmptyas	cCs6x/|jD]$}|d|kr
|ddkSq
WtS(NiiR(RR3(R!R*R+((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pytisIdgscCs|j||fS(N(R8(R!teuritenametauriR*((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pytisIdNSms(RRR N(
t__name__t
__module__t	__slots__tNoneR#R$R&R-R0R5R7R8R<(((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyR>s			
				cCs|j||S(N(t_intern_setdefault(tbuilderts((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyt_internqscCs|jd}|j}t|dkry|\}}}|||}d||f}|||}|||}n%|\}}t}|||}}||||||fS(Nt is%s:%s(tsplitRAtlenR(RBtnametpartstinternturit	localnametprefixtqname((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyt_parse_ns_namets	tExpatBuildercBs
eZdZddZdZdZdZdZdZ	dZ
dZd	Zd
Z
dZdZd
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZRS(sPDocument builder that uses Expat to build a ParsedXML.DOM document
    instance.cCsw|dkrtj}n||_|jjdk	rNt|jj|_nd|_t|_d|_	|j
dS(N(R@RtOptionst_optionstfiltertFilterVisibilityControllert_filterRt_finish_start_elementt_parsertreset(R!toptions((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyR#s				cCs
tjS(sCreate a new parser object.(RtParserCreate(R!((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pytcreateParserscCsh|jsa|j|_|jjj|_t|j_t|j_t|j_|j	|jn|jS(s7Return the parser object, creating a new one if needed.(
RWR[RJt
setdefaultRAtTruetbuffer_texttordered_attributestspecified_attributestinstall(R!((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyt	getParsers	cCs@tjtdd|_|j|_|jj|_t|_dS(s6Free all data structures used during DOM construction.N(	ttheDOMImplementationtcreateDocumentRR@tdocumenttcurNodet
_elem_infoR3t_cdata(R!((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRXs
cCs|j|_|j|_|j|_|j|_|jj	rK|j
|_n|j|_
|jjrr|j|_n|jjr|j|_|j|_|j|_n|j|_|j|_|j|_|j|_|j|_ dS(s>Install the callbacks needed to build the DOM into the parser.N(!tstart_doctype_decl_handlertStartDoctypeDeclHandlertfirst_element_handlertStartElementHandlertend_element_handlertEndElementHandlert
pi_handlertProcessingInstructionHandlerRRRtentity_decl_handlertEntityDeclHandlertnotation_decl_handlertNotationDeclHandlertcommentstcomment_handlertCommentHandlertcdata_sectionststart_cdata_section_handlertStartCdataSectionHandlertend_cdata_section_handlertEndCdataSectionHandlertcharacter_data_handler_cdatatCharacterDataHandlertcharacter_data_handlertexternal_entity_ref_handlertExternalEntityRefHandlertxml_decl_handlertXmlDeclHandlertelement_decl_handlertElementDeclHandlertattlist_decl_handlertAttlistDeclHandler(R!tparser((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRas$cCs|j}t}ylxU|jd}|s1Pn|j|d|rc|jjrc|j|nt}qW|jdtWntk
rnX|j}|j	d|_|S(sIParse a document from a file object, returning the document
        node.iiiti@N(RbR]treadtParseRetdocumentElementt
_setup_subsetR3tParseEscapeRXR@RW(R!tfileRtfirst_buffertbuffertdoc((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyt	parseFiles$

	
	cCsa|j}y!|j|t|j|Wntk
r@nX|j}|jd|_|S(s<Parse a document from a string, returning the document node.N(	RbRR]RRReRXR@RW(R!tstringRR((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pytparseStrings
	
	cCsD|jjr@t}|j||j}||jj_ndS(s/Load the internal subset if there might be one.N(RetdoctypetInternalSubsetExtractorRt	getSubsettinternalSubset(R!Rt	extractortsubset((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRs
	
cCs|jjj|||}|j|_t|j|||j_|jr|jj|tkrd|j_|jj
d=d}d|j_d|j_
n|r|dk	rg|j_g|j_nd|j_d|j_|j|j_ndS(Ni(RetimplementationtcreateDocumentTypet
ownerDocumentRRRUt
acceptNodet
FILTER_REJECTR@t
childNodesRWRrRtRt_seqt	notationsRwRptend_doctype_decl_handlertEndDoctypeDeclHandler(R!tdoctypeNametsystemIdtpublicIdthas_internal_subsetR((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRis$!
cCsO|jjr|j|j_n|j|j_|jp<|jsKt	|_
ndS(N(RRRuRvRWRwRoRpRgRURt_finish_end_element(R!((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRs
cCs]|jj||}t|j||jrY|jj|tkrY|jj|ndS(N(RetcreateProcessingInstructionRRfRURRtremoveChild(R!ttargettdatatnode((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRos!cCs|jj}|jrd|jrF|djtkrF|dj|dS|jj|}t	|_n|r|djt
kr|d}|j|}|j}||d<|d<dSt
j}|j}||d<|d<|j|d<t|j|dS(NiRt	nodeValueR(RfRRht_cdata_continuetnodeTypetCDATA_SECTION_NODEt
appendDataRetcreateCDATASectionR]t	TEXT_NODERt__dict__RtTextR(R!RRRtvaluetd((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyR}s&		

		
cCs|jj}|rU|djtkrU|d}|j}|j||d<|d<dStj}|j}|j||d<|d<|j|d<t	|j|dS(NiRRR(
RfRRRRRRRReR(R!RRRR((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyR(s
		
c
Cs|r
dS|jjsdS|jj||||}|dk	rf|jj|}	|jj|	n|jjjj	j||j
r|j
j|tkr|jjjj	d=ndS(Ni(
RRRRet_create_entityR@tcreateTextNodeRtappendRRRURR(
R!t
entityNametis_parameter_entityRtbaseRRtnotationNameRtchild((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRq5s!cCsl|jj|||}|jjjjj||jrh|jj|tkrh|jjjjd=ndS(Ni(	Ret_create_notationRRRRRURt
FILTER_ACCEPT(R!RRRRR((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRsGs!cCsZ|jj|}t|j||jrV|jj|tkrV|jj|ndS(N(Ret
createCommentRRfRURRR(R!RR((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRvMs!cCst|_t|_dS(N(R]RhR3R(R!((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRySs	cCst|_t|_dS(N(R3RhR(R!((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyR{Ws	cCsdS(Ni((R!tcontextRRR((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyR[scCsK|jdkr%|jr%t|_n|j|j_|j||dS(N(RUR@RgRRtstart_element_handlerRbRl(R!RHt
attributes((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRk^scCs|jj|}t|j|||_|rxtdt|dD]}tj||tdt
}||d}|jdj}||d<|d<|j}||d<|d<|j|d<t
||qJWn||jjk	r|j|ndS(NiiiRRRR(Ret
createElementRRftrangeRGRtAttrRR@RRRRRRV(R!RHRRtitaRR((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRds 		
cCs|jr||jjkrdS|jj|}|tkrJt|n|tkrct|ndS|j|_	|jj
||jndS(N(RUReRtstartContainerRtRejectertFILTER_SKIPtSkippert
parentNodeRfRtunlink(R!Rtfilt((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRVxs	

cCs&|j}|j|_|j|dS(N(RfRR(R!RHRf((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRms	cCs|jj|j}|r.|j||n|jr||jjkrMdS|jj|tkr|j	j
||jqndS(N(RgtgetR t_handle_white_text_nodesRUReRRRRfRR(R!RfR+((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRs	cCs|jjs|jrdSg}x@|jD]5}|jtkr-|jjr-|j|q-q-Wx|D]}|j	|qmWdS(N(
RRtwhitespace_in_element_contentR5RRRRtstripRR(R!RR+tLR((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRs

cCsD|jj|}|dkr7t|||j|<n	||_dS(N(RgRR@RR(R!RHR"R+((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRsc	Csf|jj|}|dkr:t|}||j|<n|jjd|dd|d||gdS(Ni(RgRR@RRR(R!telemRHR4tdefaulttrequiredR+((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRs	cCsL||j_||j_|dkrH|r9t|j_qHt|j_ndS(Ni(RetversiontencodingR]t
standaloneR3(R!RRR((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRsN( R=R>t__doc__R@R#R[RbRXRaRRRRiRRoR}RRqRsRvRyR{RRkRRVRmRRRRR(((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRPs:						
						
														RTcBseZdZdZdZdZdZieje	j
6eje	j6ej
e	j6eje	j6eje	j6eje	j6eje	j6eje	j6eje	j6eje	j6eje	j6eje	j 6Z!RS(soWrapper around a DOMBuilderFilter which implements the checks
    to make the whatToShow filter attribute work.RScCs
||_dS(N(RS(R!RS((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyR#scCsu|j|j}|jj|@rm|jj|}|tkrGtn|tkritdt	|n|St
SdS(Ns)startContainer() returned illegal value: (t_nodetype_maskRRSt
whatToShowRtFILTER_INTERRUPTRt_ALLOWED_FILTER_RETURNSt
ValueErrortreprR(R!Rtmasktval((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRs	cCs|j|j}|jj|@r|jj|}|tkrGtn|tkr|j}x|j	D]}|j
|qgWtS|tkrt
dt|n|StSdS(Ns%acceptNode() returned illegal value: (RRRSRRRRRRRtappendChildRRRRR(R!RRRtparentR((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRs		(RS("R=R>RR?R#RRR	tSHOW_ELEMENTRtELEMENT_NODEtSHOW_ATTRIBUTEtATTRIBUTE_NODEt	SHOW_TEXTRtSHOW_CDATA_SECTIONRtSHOW_ENTITY_REFERENCEtENTITY_REFERENCE_NODEtSHOW_ENTITYtENTITY_NODEtSHOW_PROCESSING_INSTRUCTIONtPROCESSING_INSTRUCTION_NODEtSHOW_COMMENTtCOMMENT_NODEt
SHOW_DOCUMENTt
DOCUMENT_NODEtSHOW_DOCUMENT_TYPEtDOCUMENT_TYPE_NODEtSHOW_DOCUMENT_FRAGMENTtDOCUMENT_FRAGMENT_NODEt
SHOW_NOTATIONt
NOTATION_NODER(((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRTs$		
	










tFilterCrutchcBseZdZdZRS(t_buildert_levelt
_old_startt_old_endcCsOd|_||_|j}|j|_|j|_|j|_|j|_dS(Ni(	RRRWRlRRnRRRm(R!RBR((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyR#s			(RRRR(R=R>R?R#(((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyR	sRcBs)eZdZdZdZdZRS(cCs>tj|||j}xdD]}t||dq WdS(NRpRwR~RzR|R(RpRwR~RzR|R(RR#RWtsetattrR@(R!RBRRH((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyR#s	
cGs|jd|_dS(Ni(R(R!targs((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyR$scGsZ|jdkrF|jj}|jj||j|_|j|_n|jd|_dS(Nii(RRRWRaRRlRRn(R!RR((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRm's((R=R>R?R#RRm(((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRs		RcBs eZdZdZdZRS(cGsB|jj}|j||jj|k	r>|jd|_ndS(Ni(RRfRR(R!RR((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyR4s
cGs`|jdkr?|j|jj_|j|jj_d|_n|jd|_|j|dS(Nii(RRRRWRlRRnR@(R!R((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRm:s((R=R>R?RRm(((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyR1s	s8http://xml.python.org/entities/fragment-builder/internals<!DOCTYPE wrapper
  %%s [
  <!ENTITY fragment-builder-internal
    SYSTEM "%s">
%%s
]>
<wrapper %%s
>&fragment-builder-internal;</wrapper>tFragmentBuildercBsPeZdZddZdZdZdZdZdZ	dZ
RS(	sBuilder which constructs document fragments given XML source
    text and a context node.

    The context node is expected to provide information about the
    namespace declarations which are in scope at the start of the
    fragment.
    cCsM|jtkr$||_||_n|j|_||_tj||dS(N(RRtoriginalDocumentRRRPR#(R!RRY((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyR#bs		cCstj|d|_dS(N(RPRXR@tfragment(R!((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRXks
cCs|j|jS(sRParse a document fragment from a file object, returning the
        fragment node.(RR(R!R((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRosc	Cs||_|j}|jj}d}|r|jp?|j}|jrdd|j|jf}q|jrd|j}qnd}|j}t	|||f}y|j
|dWn|jnX|j}|j|S(sMParse a document fragment from a string, returning the
        fragment node.RsPUBLIC "%s" "%s"sSYSTEM "%s"i(
t_sourceRbR	RRt_getDeclarationsRRt_getNSattrst_FRAGMENT_BUILDER_TEMPLATERRXR
(	R!RRRtidentRtnsattrsReR
((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRts,			
	
cCs|jjj}d}|rxt|jjD]v}|jj|}|rY|d}nd||jf}|jrd||j|j	f}q.d||j	f}q.Wxt|j
jD]}|j
j|}|r|d}nd||jf}|jrd||j|j	f}n5|j	r=d||j	f}nd	||jjf}|j
rrd
||j
f}n|d}qWn|S(sRe-create the internal subset from the DocumentType node.

        This is only needed if we don't already have the
        internalSubset as a string.
        Rs
  s%s<!NOTATION %ss!%s PUBLIC "%s"
             "%s">s%s SYSTEM "%s">s
%s<!ENTITY %ss %s PUBLIC "%s"
             "%s"s%s SYSTEM "%s"s%s "%s"s%s NOTATION %st>(RRRRRtlengthtitemtnodeNameRRRt
firstChildRR(R!RRCRtnotationR((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRs6
	
			cCsdS(NR((R!((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyR
scCs|tkr|j}|j}|jj|}|j|_|jj|_|j|_z|j|j	dWd||_||_d|_	XdStj|||||SdS(Nii(
t$_FRAGMENT_BUILDER_INTERNAL_SYSTEM_IDReRfRWtExternalEntityParserCreateR	tcreateDocumentFragmentR
RRR@RPR(R!RRRRtold_documenttold_cur_nodeR((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRs				
N(R=R>RR@R#RXRRRR
R(((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRYs					$	t
NamespacescBs;eZdZdZdZdZdZdZRS(s7Mix-in class for builders; adds support for namespaces.cCs
g|_dS(N(t_ns_ordered_prefixes(R!((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyt_initNamespacesscCstjdd}t|_|S(s'Create a new namespace-handling parser.tnamespace_separatorRE(RRZR]tnamespace_prefixes(R!R((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyR[s	cCs/tj|||jjr+|j|_ndS(s.Insert the namespace-handlers onto the parser.N(RPRaRRtnamespace_declarationststart_namespace_decl_handlertStartNamespaceDeclHandler(R!R((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRascCs|jj||fdS(s/Push this namespace declaration on our storage.N(RR(R!RMRK((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyR"scCsd|kr*t||\}}}}nt}|}d}t}tj||||}|j|_t|j	|||_	|j
rIx|j
D]\}}|rtjt|d|t
|d}ntjdt
dt}|jdj}	||	d<|	d<|j}	||	d<|	d<|j|	d<t||qW|j
2n|r|j}
|j}xtdt|d	D]}||}
||d
}d|
krt||
\}}}}tj||||}||
|<||||f<n2tj|
t|
t}||
|
<||t|
f<|jdj}	||	d<|	d<|j}	|j|	d<||	d<|	d<||	d<qzWndS(NREsxmlns:txmlnsiRRRRiitownerElement(RORR@RRtElementReRRRfRRRDRRRRt_attrst_attrsNSRRG(R!RHRRKRLRMRNRRRR'R(RR*R((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRsZ			

		


	
(R=R>RRR[RaR"R(((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRs					4tExpatBuilderNScBseZdZdZRS(s*Document builder that supports namespaces.cCstj||jdS(N(RPRXR(R!((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRX5s
(R=R>RRX(((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyR)2stFragmentBuilderNScBs eZdZdZdZRS(s*Fragment builder that supports namespaces.cCstj||jdS(N(RRXR(R!((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRX=s
cCsd}|j}g}x|rt|drx|jjD]p\}}||kr[q=n|j||r{d|}nd}|rd|||f}q=d||f}q=Wn|j}qW|S(sNReturn string of namespace attributes from this element and
        ancestors.Rt_ns_prefix_urisxmlns:R$s%s
    %s='%s's %s='%s'(RthasattrR+titemsRR(R!tattrsRRRMRKtdeclname((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyR
As"		


(R=R>RRXR
(((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyR*:s	RcBseZdZRS(sEException raised to short-circuit parsing in InternalSubsetExtractor.(R=R>R(((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyR_sRcBsSeZdZdZdZdZdZdZdZ	dZ
dZRS(	sBXML processor which can rip out the internal document type subset.cCs|jS(s'Return the internal subset as a string.(R(R!((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRhscCs,ytj||Wntk
r'nXdS(N(RPRR(R!R((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRls
cCs,ytj||Wntk
r'nXdS(N(RPRR(R!R((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRrs
cCs|j|_|j|_dS(N(RiRjRRl(R!R((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRaxscCsF|r9|j}g|_|jj|_|j|_n	tdS(N(RbRRtDefaultHandlerRRR(R!RHRRRR((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRi|s	cCs@dj|jjddjdd}||_tdS(NRs
s
s
(tjoinRtreplaceR(R!RC((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRs*	cCs
tdS(N(R(R!RHR.((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRsN(R=R>RR@RRRRRaRiRR(((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRcs					
	cCsp|rt}n	t}t|tr]t|d}z|j|}Wd|jXn|j|}|S(s{Parse a document, returning the resulting Document node.

    'file' may be either a file name or an open file object.
    trbN(R)RPt
isinstancetStringTypestopenRtclose(Rt
namespacesRBtfptresult((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pytparses	cCs(|rt}n	t}|j|S(sOParse a document from a string, returning the resulting
    Document node.
    (R)RPR(RR8RB((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyRs	cCsv|rt|}nt|}t|trct|d}z|j|}Wd|jXn|j|}|S(sParse a fragment of a document, given the context from which it
    was originally extracted.  context should be the parent of the
    node(s) which are in the fragment.

    'file' may be either a file name or an open file object.
    R3N(R*RR4R5R6RR7(RRR8RBR9R:((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyt
parseFragmentscCs.|rt|}nt|}|j|S(sParse a fragment of a document from a string, given the context
    from which it was originally extracted.  context should be the
    parent of the node(s) which are in the fragment.
    (R*RR(RRR8RB((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pytparseFragmentStringscCs!|jrt|St|SdS(s,Create a builder based on an Options object.N(R8R)RP(RY((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pytmakeBuilders	
N(6Rtxml.domRRRRRRtxml.parsersRtxml.dom.minidomRRtxml.dom.NodeFilterR	txml.dom.minicompatRRRtDOMBuilderFilterRRRRtgetDOMImplementationRctTypeInfoR@R(tobjectRRDRORPRRTRRRRRRRR)R*t	ExceptionRRR]R;RR<R=R>(((s0/usr/local/lib/python2.7/xml/dom/expatbuilder.pyt<module>s`
			3		I:ud%,

Zerion Mini Shell 1.0