KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21585/root/usr/lib64/python2.4/xml/sax/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21585/root/usr/lib64/python2.4/xml/sax/saxutils.pyo
mò
‚=5Dc@sdZdkZdkZdkZdkZdkZdkZyeieigZ	Wne
j
oeigZ	nXydklZdZ
[Wnej
o
dZ
nXd„Zhd„Zhd„Zhd„Zd	eifd
„ƒYZdeifd„ƒYZd
d„ZdS(snA library of useful helper classes to the SAX classes, for the
convenience of application and driver writers.
N(sxmlcharrefreplace_errorstxmlcharrefreplacetstrictcCs3x,|iƒD]\}}|i||ƒ}q
W|S(s2Replace substrings of a string using a dictionary.N(tdtitemstkeytvaluetstreplace(RRRR((t(/usr/lib64/python2.4/xml/sax/saxutils.pyt__dict_replaces

cCsT|iddƒ}|iddƒ}|iddƒ}|ot||ƒ}n|S(süEscape &, <, and > in a string of data.

    You can escape other strings of data by passing a dictionary as
    the optional entities parameter.  The keys and values must all be
    strings; each key will be replaced with its corresponding value.
    t&s&amp;t>s&gt;t<s&lt;N(tdataRtentitiesR	(R
R((RtescapescCsN|iddƒ}|iddƒ}|ot||ƒ}n|iddƒS(s
Unescape &amp;, &lt;, and &gt; in a string of data.

    You can unescape other strings of data by passing a dictionary as
    the optional entities parameter.  The keys and values must all be
    strings; each key will be replaced with its corresponding value.
    s&lt;Rs&gt;Rs&amp;R
N(R
RRR	(R
R((Rtunescape.scCs_t||ƒ}d|jo5d|jod|iddƒ}q[d|}nd|}|S(s“Escape and quote an attribute value.

    Escape &, <, and > in a string of data, then quote it for use as
    an attribute value.  The " character will be escaped as well, if
    necessary.

    You can escape other strings of data by passing a dictionary as
    the optional entities parameter.  The keys and values must all be
    strings; each key will be replaced with its corresponding value.
    t"t's"%s"s&quot;s'%s'N(RR
RR(R
R((Rt	quoteattr<s



tXMLGeneratorcBsztZddd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d	„Z
d
„Zd„Zd„Z
d
„ZRS(Ns
iso-8859-1cCsn|djodk}|i}ntii|ƒ||_hg|_	|i	d|_
g|_||_
dS(Niÿÿÿÿ(touttNonetsyststdoutthandlertContentHandlert__init__tselft_outt_ns_contextst_current_contextt_undeclared_ns_mapstencodingt	_encoding(RRR!R((RRTs
	
		cCsGt|tƒo|ii|ƒn |ii|i|itƒƒdS(N(	t
isinstancettexttstrRRtwritetencodeR"t_error_handling(RR$((Rt_write_scCs|id|iƒdS(Ns$<?xml version="1.0" encoding="%s"?>
(RR)R"(R((Rt
startDocumentgscCs@|ii|iiƒƒ||i|<|ii||fƒdS(N(RRtappendRtcopytprefixturiR (RR-R.((RtstartPrefixMappingks
cCs|id|_|id=dS(Niÿÿÿÿ(RRR(RR-((RtendPrefixMappingpscCs\|id|ƒx7|iƒD])\}}|id|t|ƒfƒqW|idƒdS(NRs %s=%sR(RR)tnametattrsRRR(RR1R2R((RtstartElementts

!cCs|id|ƒdS(Ns</%s>(RR)R1(RR1((Rt
endElementzscCsã|ddjo|d}n|i|dd|d}|id|ƒx"|iD]}|id|ƒqWWg|_xT|iƒD]F\}}|i|dd|d}|id|t
|ƒfƒqˆW|idƒdS(Niit:Rs xmlns:%s="%s"s %s=%sR(R1RRRR)R tpairR2RRR(RR1tqnameR2RR6((RtstartElementNS}s
	
!cCsQ|ddjo|d}n|i|dd|d}|id|ƒdS(NiiR5s</%s>(R1RRRR)(RR1R7((RtendElementNSscCs|it|ƒƒdS(N(RR)Rtcontent(RR:((Rt
characters–scCs|i|ƒdS(N(RR)R:(RR:((RtignorableWhitespace™scCs|id||fƒdS(Ns	<?%s %s?>(RR)ttargetR
(RR=R
((RtprocessingInstructionœs(t__name__t
__module__RRR)R*R/R0R3R4R8R9R;R<R>(((RRRs										t
XMLFilterBasecBs
tZdZed„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d„Zd	„Zd
„Z
d„Zd„Zd
„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(sYThis class is designed to sit between an XMLReader and the
    client application's event handlers.  By default, it does nothing
    but pass requests up to the reader and events on to the handlers
    unmodified, but subclasses can override specific methods to modify
    the event stream or the configuration requests as they pass
    through.cCstii|ƒ||_dS(N(t	xmlreadert	XMLReaderRRtparentt_parent(RRD((RR¨scCs|ii|ƒdS(N(Rt_err_handlerterrort	exception(RRH((RRG®scCs|ii|ƒdS(N(RRFt
fatalErrorRH(RRH((RRI±scCs|ii|ƒdS(N(RRFtwarningRH(RRH((RRJ´scCs|ii|ƒdS(N(Rt
_cont_handlertsetDocumentLocatortlocator(RRM((RRL¹scCs|iiƒdS(N(RRKR*(R((RR*¼scCs|iiƒdS(N(RRKtendDocument(R((RRN¿scCs|ii||ƒdS(N(RRKR/R-R.(RR-R.((RR/ÂscCs|ii|ƒdS(N(RRKR0R-(RR-((RR0ÅscCs|ii||ƒdS(N(RRKR3R1R2(RR1R2((RR3ÈscCs|ii|ƒdS(N(RRKR4R1(RR1((RR4ËscCs|ii|||ƒdS(N(RRKR8R1R7R2(RR1R7R2((RR8ÎscCs|ii||ƒdS(N(RRKR9R1R7(RR1R7((RR9ÑscCs|ii|ƒdS(N(RRKR;R:(RR:((RR;ÔscCs|ii|ƒdS(N(RRKR<tchars(RRO((RR<×scCs|ii||ƒdS(N(RRKR>R=R
(RR=R
((RR>ÚscCs|ii|ƒdS(N(RRKt
skippedEntityR1(RR1((RRPÝscCs|ii|||ƒdS(N(Rt_dtd_handlertnotationDeclR1tpublicIdtsystemId(RR1RSRT((RRRâscCs|ii||||ƒdS(N(RRQtunparsedEntityDeclR1RSRTtndata(RR1RSRTRV((RRUåscCs|ii||ƒS(N(Rt_ent_handlert
resolveEntityRSRT(RRSRT((RRXêscCsT|ii|ƒ|ii|ƒ|ii|ƒ|ii|ƒ|ii|ƒdS(N(RREtsetContentHandlertsetErrorHandlertsetEntityResolvert
setDTDHandlertparsetsource(RR^((RR]ïs
cCs|ii|ƒdS(N(RREt	setLocaletlocale(RR`((RR_öscCs|ii|ƒS(N(RREt
getFeatureR1(RR1((RRaùscCs|ii||ƒdS(N(RREt
setFeatureR1tstate(RR1Rc((RRbüscCs|ii|ƒS(N(RREtgetPropertyR1(RR1((RRdÿscCs|ii||ƒdS(N(RREtsetPropertyR1R(RR1R((RRescCs|iS(N(RRE(R((Rt	getParentscCs
||_dS(N(RDRRE(RRD((Rt	setParent
s( R?R@t__doc__RRRGRIRJRLR*RNR/R0R3R4R8R9R;R<R>RPRRRURXR]R_RaRbRdReRfRg(((RRA s:																										tcCsEt|ƒtjoti|ƒ}nXt|dƒoG|}tiƒ}|i|ƒt|dƒo|i|i	ƒq}n|i
ƒdjo±|iƒ}tiitii|ƒƒ}tii||ƒ}tii|ƒo |i|ƒt|dƒ}n/|iti||ƒƒti|iƒƒ}|i|ƒn|S(s‚This function takes an InputSource and an optional base URL and
    returns a fully resolved InputSource object ready for reading.treadR1trbN(ttypeR^t_StringTypesRBtInputSourcethasattrtft
setByteStreamtsetSystemIdR1t
getByteStreamRtgetSystemIdtsysidtostpathtdirnametnormpathtbasetbaseheadtjoint
sysidfilenametisfiletopenturlparseturljointurllibturlopen(R^RzRuRpR}R{((Rtprepare_input_sources(

(RhRvR€R‚ttypesRRBt
StringTypetUnicodeTypeRmtAttributeErrortcodecstxmlcharrefreplace_errorsR(tImportErrorR	RRRRRRCRAR„(RRmR‚RBR€RŠRRR„RRR(RvR	R…RA((Rt?s($		
	No

Anon7 - 2021