config root man

Current Path : /usr/local/lib/python2.5/xml/sax/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/xml/sax/saxutils.pyc

³ò
h”Rc@s.dZddkZddkZddkZddkZddkZddkZyeieigZ	Wne
j
oeigZ	nXyddklZdZ
[Wnej
o
dZ
nXd„Zhd„Zhd„Zhd	„Zd
eifd„ƒYZdeifd
„ƒYZdd„ZdS(snA library of useful helper classes to the SAX classes, for the
convenience of application and driver writers.
iÿÿÿÿN(txmlcharrefreplace_errorstxmlcharrefreplacetstrictcCs3x,|iƒD]\}}|i||ƒ}q
W|S(s2Replace substrings of a string using a dictionary.(titemstreplace(tstdtkeytvalue((s,/usr/local/lib/python2.5/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;(RR	(tdatatentities((s,/usr/local/lib/python2.5/xml/sax/saxutils.pytescapes	cCsN|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
(RR	(R
R((s,/usr/local/lib/python2.5/xml/sax/saxutils.pytunescape.s
cCs“|iƒ}|ihdd<dd<dd<ƒt||ƒ}d|jo5d|jod	|idd
ƒ}qd|}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.
    s&#10;s
s&#13;s
s&#9;s	t"t's"%s"s&quot;s'%s'(tcopytupdateRR(R
R((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyt	quoteattr<s(


tXMLGeneratorcBsƒeZddd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
„ZRS(s
iso-8859-1cCsq|djoddk}|i}ntii|ƒ||_hg|_|id|_g|_	||_
dS(Niÿÿÿÿ(tNonetsyststdoutthandlertContentHandlert__init__t_outt_ns_contextst_current_contextt_undeclared_ns_mapst	_encoding(tselftouttencodingR((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyRVs

		cCsGt|tƒo|ii|ƒn |ii|i|itƒƒdS(N(t
isinstancetstrRtwritetencodeR!t_error_handling(R"ttext((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyt_writeascCsC|do0|i|d}|o|d|dSq;n|dS(s7Builds a qualified name from a (ns_url, localname) pairit:i(R(R"tnametprefix((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyt_qnamegs
cCs|id|iƒdS(Ns$<?xml version="1.0" encoding="%s"?>
(R+R!(R"((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyt
startDocumentts	cCs@|ii|iiƒƒ||i|<|ii||fƒdS(N(RtappendRRR (R"R.turi((s,/usr/local/lib/python2.5/xml/sax/saxutils.pytstartPrefixMappingxs
cCs|id|_|id=dS(Niÿÿÿÿ(RR(R"R.((s,/usr/local/lib/python2.5/xml/sax/saxutils.pytendPrefixMapping}scCs\|id|ƒx7|iƒD])\}}|id|t|ƒfƒqW|idƒdS(NRs %s=%sR(R+RR(R"R-tattrsR((s,/usr/local/lib/python2.5/xml/sax/saxutils.pytstartElements

!cCs|id|ƒdS(Ns</%s>(R+(R"R-((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyt
endElement‡scCsÊ|id|i|ƒƒxP|iD]E\}}|o|iid||fƒq$|iid|ƒq$Wg|_x@|iƒD]2\}}|id|i|ƒt|ƒfƒqƒW|idƒdS(NRs xmlns:%s="%s"s xmlns="%s"s %s=%sR(R+R/R RR'RR(R"R-tqnameR5R.R2R((s,/usr/local/lib/python2.5/xml/sax/saxutils.pytstartElementNSŠs
	
*cCs|id|i|ƒƒdS(Ns</%s>(R+R/(R"R-R8((s,/usr/local/lib/python2.5/xml/sax/saxutils.pytendElementNS˜scCs|it|ƒƒdS(N(R+R(R"tcontent((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyt
characters›scCs|i|ƒdS(N(R+(R"R;((s,/usr/local/lib/python2.5/xml/sax/saxutils.pytignorableWhitespacežscCs|id||fƒdS(Ns	<?%s %s?>(R+(R"ttargetR
((s,/usr/local/lib/python2.5/xml/sax/saxutils.pytprocessingInstruction¡sN(t__name__t
__module__RRR+R/R0R3R4R6R7R9R:R<R=R?(((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyRTs		
									t
XMLFilterBasecBs
eZdZdd„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	XMLReaderRt_parent(R"tparent((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyR­scCs|ii|ƒdS(N(t_err_handlerterror(R"t	exception((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyRH³scCs|ii|ƒdS(N(RGt
fatalError(R"RI((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyRJ¶scCs|ii|ƒdS(N(RGtwarning(R"RI((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyRK¹scCs|ii|ƒdS(N(t
_cont_handlertsetDocumentLocator(R"tlocator((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyRM¾scCs|iiƒdS(N(RLR0(R"((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyR0ÁscCs|iiƒdS(N(RLtendDocument(R"((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyROÄscCs|ii||ƒdS(N(RLR3(R"R.R2((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyR3ÇscCs|ii|ƒdS(N(RLR4(R"R.((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyR4ÊscCs|ii||ƒdS(N(RLR6(R"R-R5((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyR6ÍscCs|ii|ƒdS(N(RLR7(R"R-((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyR7ÐscCs|ii|||ƒdS(N(RLR9(R"R-R8R5((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyR9ÓscCs|ii||ƒdS(N(RLR:(R"R-R8((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyR:ÖscCs|ii|ƒdS(N(RLR<(R"R;((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyR<ÙscCs|ii|ƒdS(N(RLR=(R"tchars((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyR=ÜscCs|ii||ƒdS(N(RLR?(R"R>R
((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyR?ßscCs|ii|ƒdS(N(RLt
skippedEntity(R"R-((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyRQâscCs|ii|||ƒdS(N(t_dtd_handlertnotationDecl(R"R-tpublicIdtsystemId((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyRSçscCs|ii||||ƒdS(N(RRtunparsedEntityDecl(R"R-RTRUtndata((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyRVêscCs|ii||ƒS(N(t_ent_handlert
resolveEntity(R"RTRU((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyRYïscCsT|ii|ƒ|ii|ƒ|ii|ƒ|ii|ƒ|ii|ƒdS(N(REtsetContentHandlertsetErrorHandlertsetEntityResolvert
setDTDHandlertparse(R"tsource((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyR^ôs
cCs|ii|ƒdS(N(REt	setLocale(R"tlocale((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyR`ûscCs|ii|ƒS(N(REt
getFeature(R"R-((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyRbþscCs|ii||ƒdS(N(REt
setFeature(R"R-tstate((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyRcscCs|ii|ƒS(N(REtgetProperty(R"R-((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyRescCs|ii||ƒdS(N(REtsetProperty(R"R-R((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyRfscCs|iS(N(RE(R"((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyt	getParentscCs
||_dS(N(RE(R"RF((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyt	setParentsN( R@RAt__doc__RRRHRJRKRMR0ROR3R4R6R7R9R:R<R=R?RQRSRVRYR^R`RbRcReRfRgRh(((s,/usr/local/lib/python2.5/xml/sax/saxutils.pyRB¥s:																										tcCsEt|ƒtjoti|ƒ}nXt|dƒoG|}tiƒ}|i|ƒt|dƒo|i|iƒq}n|iƒdjo±|i
ƒ}tii
tii|ƒƒ}tii||ƒ}tii|ƒ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.treadR-trbN(ttypet_StringTypesRCtInputSourcethasattrt
setByteStreamtsetSystemIdR-t
getByteStreamRtgetSystemIdtostpathtdirnametnormpathtjointisfiletopenturlparseturljointurllibturlopen(R_tbasetftsysidtbaseheadt
sysidfilename((s,/usr/local/lib/python2.5/xml/sax/saxutils.pytprepare_input_sources&

(RiRuR|R~ttypesRRCt
StringTypetUnicodeTypeRntAttributeErrortcodecsRR)tImportErrorR	RRRRRRDRBR…(((s,/usr/local/lib/python2.5/xml/sax/saxutils.pys<module>s(0	Qo

Man Man