MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /proc/self/root/proc/self/root/usr/lib/python2.4/site-packages/_xmlplus/sax/drivers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/proc/self/root/usr/lib/python2.4/site-packages/_xmlplus/sax/drivers/pylibs.pyo
mò
TÑX=c@s[dZdklZlZdkZdeieifd„ƒYZdefd„ƒYZdS(sz
Common code for the sgmllib, htmllib and xmllib parser drivers.

$Id: pylibs.py,v 1.6 2002/08/13 09:28:52 afayolle Exp $
(ssaxlibssaxutilsNt	LibParsercBsVtZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
RS(	s?Common code for the sgmllib, htmllib and xmllib parser drivers.cCstii|ƒdS(N(tsaxlibtParsert__init__tself(R((t?/usr/lib/python2.4/site-packages/_xmlplus/sax/drivers/pylibs.pyRscCs#||_|iti|ƒƒdS(sParses the referenced document.N(tsysIDRt	parseFileturllib2turlopen(RR((Rtparses	cCs­|iƒo|ii|ƒn|iƒxq|idƒ}|djoPny|i|ƒWq.t	j
o+}|iit
it|ƒ|ƒƒq.Xq.W|iƒdS(sParses the given file.ii@tN(Rt_can_locatetdoc_handlertsetDocumentLocatortresettfileobjtreadtbuftfeedtRuntimeErrorteterr_handlert
fatalErrorRtSAXExceptiontstrtclose(RRRR((RRs


,cCs|ii|ƒdS(sHandles end tags.N(RR
t
endElementttag(RR((Rtunknown_endtag(scCs|dj|_dS(s-Remembers whether the document is standalone.tyesN(t
standaloneR(RtencodingR((Rt
handle_xml,scCs |ii|dt|ƒƒdS(sHandles PCDATA.iN(RR
t
characterstdatatlen(RR#((Rthandle_data0scCs |ii|dt|ƒƒdS(sHandles CDATA marked sections.iN(RR
R"R#R$(RR#((Rthandle_cdata4scCsP|iƒo#|iiti|d|ƒƒn|iiti|dƒƒdS(sHandles fatal errors.N(	RRRRRtSAXParseExceptiontmessagetNoneR(RR(((Rtsyntax_error8s

(t__name__t
__module__t__doc__RR
RRR!R%R&R*(((RR
s							tSGMLParserscBs_tZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„ZRS(
s0Common code for the sgmllib and htmllib parsers.cCs|iid|ƒdS(s Handles processing instructions.RN(RR
tprocessingInstructionR#(RR#((Rt	handle_piFscCs|i||ƒdS(N(Rtunknown_starttagRt
attributes(RRtmethodR2((Rthandle_starttagKscCsGh}x|D]\}}|||<q
W|ii|ti	|ƒƒdS(sHandles start tags.N(
tattrsR2tatvRR
tstartElementRtsaxutilstAttributeMap(RRR2R6R5R7((RR1NscCs|ii|ƒdS(sHandles end tags.N(RR
RR(RRR3((Rt
handle_endtagVscCs$|iitid|dƒƒdS(s/Handles entity references by throwing an error.s Reference to unknown entity '%s'N(RRRRRtnameR)(RR<((Rtunknown_entityrefZscCs$|iitid|dƒƒdS(s'Handles non-ASCII character references.s#Reference to unknown character '%d'N(RRRRRtnoR)(RR>((Rtunknown_charref_scCs |ii|dt|ƒƒdS(s*Handles character data in element content.iN(RR
R"R#R$(RR#((RR%cscCs$|iitid|dƒƒdS(sReports unbalanced tags.sUnbalanced end tag for '%s'N(RRRRRtgiR)(RR@((Rtreport_unbalancedgscCsdS(s5Internal: returns true if location info is available.iN((R((RRks(R+R,R-R0R4R1R;R=R?R%RAR(((RR.Cs								(	R-txml.saxRR9RRtLocatorRR.(RRR.RR9((Rt?s	6

Anon7 - 2021