403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/xml/sax/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/xml/sax/saxutils.pyc
ó
—|_c@s*dZddlZddlZddlZddlZddlZddlZyejejgZ	Wne
k
rƒejgZ	nXyddlmZdZ
[Wnek
rŗdZ
nXd„Zid„Zid„Zid	„Zd
ejfd„ƒYZdejfd
„ƒYZdd„ZdS(snA library of useful helper classes to the SAX classes, for the
convenience of application and driver writers.
i’’’’N(txmlcharrefreplace_errorstxmlcharrefreplacetstrictcCs3x,|jƒD]\}}|j||ƒ}q
W|S(s2Replace substrings of a string using a dictionary.(titemstreplace(tstdtkeytvalue((s&/usr/lib/python2.7/xml/sax/saxutils.pyt__dict_replacescCsR|jddƒ}|jddƒ}|jddƒ}|rNt||ƒ}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/lib/python2.7/xml/sax/saxutils.pytescapes	cCsL|jddƒ}|jddƒ}|r<t||ƒ}n|jddƒ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/lib/python2.7/xml/sax/saxutils.pytunescape.s
cCs‰|jƒ}|jidd6dd6dd6ƒt||ƒ}d|kr{d|krnd	|jdd
ƒ}q…d|}n
d	|}|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/lib/python2.7/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-1cCso|dkr$ddl}|j}ntjj|ƒ||_ig|_|jd|_g|_	||_
dS(Ni’’’’(tNonetsyststdoutthandlertContentHandlert__init__t_outt_ns_contextst_current_contextt_undeclared_ns_mapst	_encoding(tselftouttencodingR((s&/usr/lib/python2.7/xml/sax/saxutils.pyRVs		cCsEt|tƒr"|jj|ƒn|jj|j|jtƒƒdS(N(t
isinstancetstrRtwritetencodeR!t_error_handling(R"ttext((s&/usr/lib/python2.7/xml/sax/saxutils.pyt_writeascCsX|drPd|dkr&d|dS|j|d}|rP|d|dSn|dS(s7Builds a qualified name from a (ns_url, localname) pairis$http://www.w3.org/XML/1998/namespacesxml:it:(R(R"tnametprefix((s&/usr/lib/python2.7/xml/sax/saxutils.pyt_qnamegs
cCs|jd|jƒdS(Ns$<?xml version="1.0" encoding="%s"?>
(R+R!(R"((s&/usr/lib/python2.7/xml/sax/saxutils.pyt
startDocumentzs	cCs@|jj|jjƒƒ||j|<|jj||fƒdS(N(RtappendRRR (R"R.turi((s&/usr/lib/python2.7/xml/sax/saxutils.pytstartPrefixMapping~s
cCs|jd|_|jd=dS(Ni’’’’(RR(R"R.((s&/usr/lib/python2.7/xml/sax/saxutils.pytendPrefixMappingƒscCs\|jd|ƒx7|jƒD])\}}|jd|t|ƒfƒqW|jdƒdS(NRs %s=%sR(R+RR(R"R-tattrsR((s&/usr/lib/python2.7/xml/sax/saxutils.pytstartElement‡s!cCs|jd|ƒdS(Ns</%s>(R+(R"R-((s&/usr/lib/python2.7/xml/sax/saxutils.pyt
endElementscCsČ|jd|j|ƒƒxN|jD]C\}}|rS|jjd||fƒq$|jjd|ƒq$Wg|_x@|jƒD]2\}}|jd|j|ƒt|ƒfƒqW|jdƒdS(NRs xmlns:%s="%s"s xmlns="%s"s %s=%sR(R+R/R RR'RR(R"R-tqnameR5R.R2R((s&/usr/lib/python2.7/xml/sax/saxutils.pytstartElementNSs	*cCs|jd|j|ƒƒdS(Ns</%s>(R+R/(R"R-R8((s&/usr/lib/python2.7/xml/sax/saxutils.pytendElementNSžscCs|jt|ƒƒdS(N(R+R(R"tcontent((s&/usr/lib/python2.7/xml/sax/saxutils.pyt
characters”scCs|j|ƒdS(N(R+(R"R;((s&/usr/lib/python2.7/xml/sax/saxutils.pytignorableWhitespace¤scCs|jd||fƒdS(Ns	<?%s %s?>(R+(R"ttargetR
((s&/usr/lib/python2.7/xml/sax/saxutils.pytprocessingInstruction§sN(t__name__t
__module__RRR+R/R0R3R4R6R7R9R:R<R=R?(((s&/usr/lib/python2.7/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.cCstjj|ƒ||_dS(N(t	xmlreadert	XMLReaderRt_parent(R"tparent((s&/usr/lib/python2.7/xml/sax/saxutils.pyR³scCs|jj|ƒdS(N(t_err_handlerterror(R"t	exception((s&/usr/lib/python2.7/xml/sax/saxutils.pyRH¹scCs|jj|ƒdS(N(RGt
fatalError(R"RI((s&/usr/lib/python2.7/xml/sax/saxutils.pyRJ¼scCs|jj|ƒdS(N(RGtwarning(R"RI((s&/usr/lib/python2.7/xml/sax/saxutils.pyRKæscCs|jj|ƒdS(N(t
_cont_handlertsetDocumentLocator(R"tlocator((s&/usr/lib/python2.7/xml/sax/saxutils.pyRMÄscCs|jjƒdS(N(RLR0(R"((s&/usr/lib/python2.7/xml/sax/saxutils.pyR0ĒscCs|jjƒdS(N(RLtendDocument(R"((s&/usr/lib/python2.7/xml/sax/saxutils.pyROŹscCs|jj||ƒdS(N(RLR3(R"R.R2((s&/usr/lib/python2.7/xml/sax/saxutils.pyR3ĶscCs|jj|ƒdS(N(RLR4(R"R.((s&/usr/lib/python2.7/xml/sax/saxutils.pyR4ŠscCs|jj||ƒdS(N(RLR6(R"R-R5((s&/usr/lib/python2.7/xml/sax/saxutils.pyR6ÓscCs|jj|ƒdS(N(RLR7(R"R-((s&/usr/lib/python2.7/xml/sax/saxutils.pyR7ÖscCs|jj|||ƒdS(N(RLR9(R"R-R8R5((s&/usr/lib/python2.7/xml/sax/saxutils.pyR9ŁscCs|jj||ƒdS(N(RLR:(R"R-R8((s&/usr/lib/python2.7/xml/sax/saxutils.pyR:ÜscCs|jj|ƒdS(N(RLR<(R"R;((s&/usr/lib/python2.7/xml/sax/saxutils.pyR<ßscCs|jj|ƒdS(N(RLR=(R"tchars((s&/usr/lib/python2.7/xml/sax/saxutils.pyR=āscCs|jj||ƒdS(N(RLR?(R"R>R
((s&/usr/lib/python2.7/xml/sax/saxutils.pyR?åscCs|jj|ƒdS(N(RLt
skippedEntity(R"R-((s&/usr/lib/python2.7/xml/sax/saxutils.pyRQčscCs|jj|||ƒdS(N(t_dtd_handlertnotationDecl(R"R-tpublicIdtsystemId((s&/usr/lib/python2.7/xml/sax/saxutils.pyRSķscCs|jj||||ƒdS(N(RRtunparsedEntityDecl(R"R-RTRUtndata((s&/usr/lib/python2.7/xml/sax/saxutils.pyRVšscCs|jj||ƒS(N(t_ent_handlert
resolveEntity(R"RTRU((s&/usr/lib/python2.7/xml/sax/saxutils.pyRYõscCsT|jj|ƒ|jj|ƒ|jj|ƒ|jj|ƒ|jj|ƒdS(N(REtsetContentHandlertsetErrorHandlertsetEntityResolvert
setDTDHandlertparse(R"tsource((s&/usr/lib/python2.7/xml/sax/saxutils.pyR^śs
cCs|jj|ƒdS(N(REt	setLocale(R"tlocale((s&/usr/lib/python2.7/xml/sax/saxutils.pyR`scCs|jj|ƒS(N(REt
getFeature(R"R-((s&/usr/lib/python2.7/xml/sax/saxutils.pyRbscCs|jj||ƒdS(N(REt
setFeature(R"R-tstate((s&/usr/lib/python2.7/xml/sax/saxutils.pyRcscCs|jj|ƒS(N(REtgetProperty(R"R-((s&/usr/lib/python2.7/xml/sax/saxutils.pyRe
scCs|jj||ƒdS(N(REtsetProperty(R"R-R((s&/usr/lib/python2.7/xml/sax/saxutils.pyRf
scCs|jS(N(RE(R"((s&/usr/lib/python2.7/xml/sax/saxutils.pyt	getParentscCs
||_dS(N(RE(R"RF((s&/usr/lib/python2.7/xml/sax/saxutils.pyt	setParentsN( R@RAt__doc__RRRHRJRKRMR0ROR3R4R6R7R9R:R<R=R?RQRSRVRYR^R`RbRcReRfRgRh(((s&/usr/lib/python2.7/xml/sax/saxutils.pyRB«s:																										tcCs;t|ƒtkr$tj|ƒ}nSt|dƒrw|}tjƒ}|j|ƒt|dƒrw|j|jƒqwn|jƒdkr7|j
ƒ}tjj
tjj|ƒƒ}tjj||ƒ}tjj|ƒrł|j|ƒt|dƒ}n.|jtj||ƒƒtj|j
ƒƒ}|j|ƒ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/lib/python2.7/xml/sax/saxutils.pytprepare_input_sources&

(RiRuR|R~ttypesRRCt
StringTypetUnicodeTypeRntAttributeErrortcodecsRR)tImportErrorR	RRRRRRDRBR…(((s&/usr/lib/python2.7/xml/sax/saxutils.pyt<module>s(0


	Wo

Youez - 2016 - github.com/yon3zu
LinuXploit