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/22697/root/usr/lib64/python2.4/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/22697/root/usr/lib64/python2.4/markupbase.pyc
mň
‚=5Dc@szdZdkZeidƒiZeidƒiZeidƒZeidƒZeidƒZ[dfd„ƒYZ	dS(	süShared support for scanning document type declarations in HTML and XHTML.

This module is used as a foundation for the HTMLParser and sgmllib
modules (indirectly, for htmllib as well).  It has no documented
public API and should not be used directly.

Ns[a-zA-Z][-_.a-zA-Z0-9]*\s*s(\'[^\']*\'|"[^"]*")\s*s--\s*>s	]\s*]\s*>s]\s*>t
ParserBasecBsĄtZdZd„Zd„Zd„Zd„Zd„ZdZd„Z	dd	„Z
dd
„Zd„Zd„Z
d
„Zd„Zd„Zd„Zd„ZRS(siParser base class which provides some common support methods used
    by the SGML/HTML and XHTML parsers.cCs$|itjotdƒ‚ndS(Ns(markupbase.ParserBase must be subclassed(tselft	__class__RtRuntimeError(R((t"/usr/lib64/python2.4/markupbase.pyt__init__scCstdƒ‚dS(Ns.subclasses of ParserBase must override error()(tNotImplementedError(Rtmessage((Rterror!scCsd|_d|_dS(Nii(Rtlinenotoffset(R((Rtreset%s	cCs|i|ifS(s&Return current line number and offset.N(RR	R
(R((Rtgetpos)scCsŒ||jo|Sn|i}|id||ƒ}|o:|i||_|id||ƒ}||d|_	n|i	|||_	|S(Ns
i(
titjRtrawdatatcounttnlinesR	trindextposR
(RR
RRRR((Rt	updatepos1s
	tc
Csz|i}|d}|||!djp
td‚|||d!djodSnt|ƒ}|||d!djo|i|ƒSn;||d	jo|i|ƒSn|i	||ƒ\}}|d
jo|Sn|djo
d|_nx„||jov||}|djoH||d|!}	|djo|i|	ƒn|i|	ƒ|dSn|d
jo.t||ƒ}|pdSn|iƒ}nÄ|djo|i	||ƒ\}}n›||ijo|d}n}|d	joZ|djo|i|d|ƒ}q\|djo|id|ƒq\|idƒn|id||ƒ|d
jo|SqňqňWdS(Nis<!s$unexpected call to parse_declarationit-Ri˙˙˙˙s--t[itdoctypet>s"'t4abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZtattlisttlinktypetlinktelements&unsupported '[' char in %s declarations"unexpected '[' char in declarations!unexpected %r char in declaration(RR(RRslinkR(RRR
RtAssertionErrortlentnt
parse_commenttparse_marked_sectiont
_scan_nametdecltypet_decl_othercharstctdatathandle_decltunknown_declt_declstringlit_matchtmtendtnamet_parse_doctype_subsetR(
RR
R'R%R.RR,R!RR(((Rtparse_declarationAsV	















icCs|i}|||d!djp
td‚|i|d|ƒ\}}|djo|Sn|djoti||dƒ}nD|djot
i||dƒ}n|id
||d|!ƒ|pdSn|o+|i
dƒ}|i||d|!ƒn|idƒS(Nis<![s)unexpected call to parse_marked_section()ittemptcdatatignoretincludetrcdatatiftelsetendifs+unknown status keyword %r in marked sectioni˙˙˙˙(R1R2signoreR4R5(R6R7R8(RRR
RR$tsectNameRt_markedsectionclosetsearchtmatcht_msmarkedsectioncloseRtreporttstartR*R-(RR
R>R9RRR<((RR#Œs 	"


cCs–|i}|||d!djo|idƒnti||dƒ}|pdSn|o+|idƒ}|i
||d|!ƒn|idƒS(Nis<!--s"unexpected call to parse_comment()i˙˙˙˙i(RRR
Rt
_commentcloseR;R<R>R?Rthandle_commentR-(RR
R>RRR<((RR"˘s	c
Cs|i}t|ƒ}|}xî||joŕ||}|djoy|||d!}|djodSn|djo)|i||dƒ|i
d|ƒn|d|jodSn|d|jodSn|||d!djo1|i|d	d
ƒ}|d
jo|Sqqn|i|d|ƒ\}}|djodSn|djo)|i||dƒ|i
d|ƒnt|d|ƒ}	|	||ƒ}|d
jo|Sqq|djom|d|jodSn|i|d|ƒ\}}|d
jo|Sn||djo|d}qq|djo‰|d}x-||jo||iƒo|d}qOW||jo:||djo|Sn|i||ƒ|i
dƒqdSq|iƒo|d}q|i||ƒ|i
d|ƒqWdS(Nt<ii˙˙˙˙s<!is*unexpected char in internal subset (in %r)is<!--R>iRRtentitytnotations)unknown declaration %r in internal subsett_parse_doctype_t%t;t]Rs%unexpected char after internal subsets%unexpected char %r in internal subset(sattlistselementRCRD(RRR R!R
RR'tsRtdeclstartposRR"R$R.tgetattrtmethtisspace(
RR
RJR.RR'R!RIRRL((RR/°sp	














cCsc|i||ƒ\}}|djodSn|i}d||jo|id|ƒdSndS(Ni˙˙˙˙Ri(RR$R
RJR.RRtfind(RR
RJR.RR((Rt_parse_doctype_elementós
	cCsc|i}|i||ƒ\}}|||d!}|djodSn|djo|dSnxü|i||ƒ\}}|djo|Sn|||d!}|djodSn|djopd||jo|id|ƒd}ndSx'|||d!i	ƒo|d}qőW||pdSqKn|i||ƒ\}}|||d!}|pdSn|djoNt
||ƒ}|o|iƒ}ndS|||d!}|pdSqĆn|d	jon||d	jodSn|i|d|ƒ\}}|djo|Sn|||d!}|pdSqAn|djo|dSqcqcWdS(
NiRi˙˙˙˙Rit(t)s'"t#(
RRR$R
RJR.RR'RNRMR+R,R-(RR
RJR.RR,R'R((Rt_parse_doctype_attlistţs^	








cCsă|i||ƒ\}}|djo|Sn|i}xŚ|||d!}|pdSn|djo|dSn|djo.t||ƒ}|pdSn|i
ƒ}q9|i||ƒ\}}|djo|Sq9q9WdS(Niii˙˙˙˙Rs'"(RR$R
RJR.RRR'R+R,R-(RR
RJR.RR,R'R((Rt_parse_doctype_notation7s&
	


cCsV|i}|||d!djoR|d}xK|||d!}|pdSn|iƒo|d}q.Pq.Wn|}|i||ƒ\}}|djo|SnxŠ|i||d!}|pdSn|djo.t	||ƒ}|o|iƒ}qMdSqŠ|djo|dSqŠ|i||ƒ\}}|djo|SqŠqŠWdS(NiRFi˙˙˙˙is'"R(RRR
RR'RMR$RJR.R+R,R-(RR
RJR'R.RR,R((Rt_parse_doctype_entityNs<	






cCsÁ|i}t|ƒ}||jodSnt||ƒ}|oQ|iƒ}|i
ƒ}|t|ƒ|jodSn|iƒ|i
ƒfSn-|i||ƒ|id|||d!ƒdS(Ni˙˙˙˙sexpected name token at %ri(Ni˙˙˙˙(Ni˙˙˙˙(RRR R!R
tNonet_declname_matchR,tgroupRItstripR.tlowerR-RRJR(RR
RJR.R,R!RIR((RR$rs	
cCsdS(N((RR(((RR*„s(t__name__t
__module__t__doc__RRRRRR&R0R#R"R/RORSRTRUR$R*(((RRs"					
	K	C		9		$	(
R]tretcompileR<RWR+R@R:R=R(R@RR:RWR+R^R=((Rt?s	

Anon7 - 2021