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/HTMLParser.pyc
mò
‚=5Dc@sdZdkZdkZeidƒZeidƒZeidƒZeidƒZeidƒZeidƒZ	eidƒZ
eid	ƒZeid
ƒZeidƒZ
eideiƒZeidƒZeid
ƒZdefd„ƒYZdeifd„ƒYZdS(sA parser for HTML and XHTML.Ns[&<]s<(/|\Z)s
&[a-zA-Z#]s%&([a-zA-Z][-.a-zA-Z0-9]*)[^a-zA-Z0-9]s)&#(?:[0-9]+|[xX][0-9a-fA-F]+)[^0-9a-fA-F]s	<[a-zA-Z]t>s--\s*>s[a-zA-Z][-.a-zA-Z0-9:_]*s_\s*([a-zA-Z_][-.:a-zA-Z_0-9]*)(\s*=\s*(\'[^\']*\'|"[^"]*"|[-a-zA-Z0-9./,:;+*%?!&$\(\)_#=~@]*))?sê
  <[a-zA-Z][-.a-zA-Z0-9:_]*          # tag name
  (?:\s+                             # whitespace before attribute name
    (?:[a-zA-Z_][-.:a-zA-Z0-9_]*     # attribute name
      (?:\s*=\s*                     # value indicator
        (?:'[^']*'                   # LITA-enclosed value
          |\"[^\"]*\"                # LIT-enclosed value
          |[^'\">\s]+                # bare value
         )
       )?
     )
   )*
  \s*                                # trailing whitespace
s#</\s*([a-zA-Z][-.a-zA-Z0-9:_]*)\s*>tHTMLParseErrorcBs)tZdZeefd„Zd„ZRS(s&Exception raised for all parse errors.cCs5|pt‚||_|d|_|d|_dS(Nii(tmsgtAssertionErrortselftpositiontlinenotoffset(RRR((t"/usr/lib64/python2.4/HTMLParser.pyt__init__4s	
cCs[|i}|idj	o|d|i}n|idj	o|d|id}n|S(Ns, at line %ds, column %di(RRtresultRtNoneR(RR
((Rt__str__:s	(t__name__t
__module__t__doc__RR	R(((RR1st
HTMLParsercBsòtZdZdZd„Zd„Zd„Zd„Zd„Ze	Z
d„Zd	„Zd
„Z
d„Zd„Zd
„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(sÇFind tags and other markup and call handler functions.

    Usage:
        p = HTMLParser()
        p.feed(data)
        ...
        p.close()

    Start tags are handled by calling self.handle_starttag() or
    self.handle_startendtag(); end tags by self.handle_endtag().  The
    data between tags is passed from the parser to the derived class
    by calling self.handle_data() with the data as argument (the data
    may be split up in arbitrary chunks).  Entity references are
    passed by calling self.handle_entityref() with the entity
    reference as the argument.  Numeric character references are
    passed to self.handle_charref() with the string containing the
    reference as the argument.
    tscripttstylecCs|iƒdS(s#Initialize and reset this instance.N(Rtreset(R((RR	ZscCs/d|_d|_t|_tii|ƒdS(s1Reset this instance.  Loses all unprocessed data.ts???N(Rtrawdatatlasttagtinteresting_normaltinterestingt
markupbaset
ParserBaseR(R((RR^s
			cCs!|i||_|idƒdS(sFeed data to the parser.

        Call this as often as you want, with as little or as much text
        as you want (may include '
').
        iN(RRtdatatgoahead(RR((RtfeedescCs|idƒdS(sHandle any buffered data.iN(RR(R((RtclosenscCst||iƒƒ‚dS(N(RtmessageRtgetpos(RR((RterrorrscCs|iS(s)Return full source of start tag: '<...>'.N(Rt_HTMLParser__starttag_text(R((Rtget_starttag_textwscCs
t|_dS(N(tinteresting_cdataRR(R((Rtset_cdata_mode{scCs
t|_dS(N(RRR(R((Rtclear_cdata_mode~sc
Csî|i}d}t|ƒ}x||jos|ii||ƒ}	|	o|	iƒ}n|}||jo|i
|||!ƒn|i||ƒ}||joPn|i}|d|ƒot
i||ƒo|i|ƒ}nº|d|ƒo|i|ƒ}n—|d|ƒo|i|ƒ}nt|d|ƒo|i|ƒ}nQ|d|ƒo|i|ƒ}n.|d|jo|i
dƒ|d}nP|djo|o|idƒnPn|i||ƒ}q|d	|ƒo…ti||ƒ}	|	og|	iƒd
d!}|i|ƒ|	iƒ}|d|dƒp|d}n|i||ƒ}qqšPq|d
|ƒoti||ƒ}	|	oc|	idƒ}|i|ƒ|	iƒ}|d|dƒp|d}n|i||ƒ}qnti||ƒ}	|	o4|o(|	iƒ||jo|idƒnPqš|d|jo'|i
d
ƒ|i||dƒ}qšPqdp
td‚qW|o7||jo*|i
|||!ƒ|i||ƒ}n|||_dS(Nit<s</s<!--s<?s<!isEOF in middle of constructs&#iiÿÿÿÿt;t&s#EOF in middle of entity or char refsinteresting.search() lied(RRtitlentnRtsearchtmatchtstarttjthandle_datat	updatepost
startswithtstarttagopentparse_starttagtktparse_endtagt
parse_commenttparse_pitparse_declarationtendR!tcharreftgrouptnamethandle_charreft	entityrefthandle_entityreft
incompleteR(
RR;R3R>R*R0R,RR6R.((RR„sŒ	


	




cCs„|i}|||d!djp
td‚ti||dƒ}|pdSn|iƒ}|i	||d|!ƒ|i
ƒ}|S(Nis<?sunexpected call to parse_pi()iÿÿÿÿ(RRR*RtpicloseR-R.R/R0t	handle_piR;(RR*R0RR.((RR9Ôs	"cCs—d|_|i|ƒ}
|
djo|
Sn|i}|||
!|_g}ti	||dƒ}|p
t
d‚|iƒ}||d|!i
ƒ|_}xð||
joâti	||ƒ}|pPn|idddƒ\}}
}|
p
d}nm|d djo|djnp&|d djo|djno |dd!}|i|ƒ}n|i|i
ƒ|fƒ|iƒ}q W|||
!iƒ}|djo‘|iƒ\}}	d|ijo9||iidƒ}t|iƒ|iidƒ}	n|	t|iƒ}	|id|||
!d
 fƒn|i d
ƒo|i!||ƒn/|i"||ƒ||i#jo|i$ƒn|
S(Niis#unexpected call to parse_starttag()iis'iÿÿÿÿt"Rs/>s
s junk characters in start tag: %ri(Rs/>(%RRR"tcheck_for_whole_start_tagR*tendposRtattrsttagfindR.RR;R6tlowerRttagtattrfindtmR=tattrnametrestt	attrvaluetunescapetappendtstripR RRtcountR+trfindR!tendswiththandle_startendtagthandle_starttagtCDATA_CONTENT_ELEMENTSR%(RR*R;RPRMRNRRKRRROR.R6RGRH((RR5àsL	
	

L

##cCs|i}ti||ƒ}|oí|iƒ}|||d!}|djo|dSn|djo_|i	d|ƒo|dSn|i	d|ƒodSn|i
||dƒ|idƒn|djodSn|d	jodSn|i
||ƒ|id
ƒntdƒ‚dS(NiRt/s/>iiÿÿÿÿsmalformed empty start tagRs6abcdefghijklmnopqrstuvwxyz=/ABCDEFGHIJKLMNOPQRSTUVWXYZsmalformed start tagswe should not get here!(
RRtlocatestarttagendR.R*RMR;R0tnextR3R2R!R(RR*R0RMR\R((RRFs*	



cCsÄ|i}|||d!djp
td‚ti||dƒ}|pdSn|iƒ}t	i||ƒ}|p|i
d|||!fƒn|idƒ}|i
|iƒƒ|iƒ|S(Nis</sunexpected call to parse_endtagiiÿÿÿÿsbad end tag: %r(RRR*Rt	endendtagR-R.R;R0t
endtagfindR!R=RKt
handle_endtagRJR&(RR*R0RKRR.((RR71s	"
cCs!|i||ƒ|i|ƒdS(N(RRXRKRHR_(RRKRH((RRWAscCsdS(N((RRKRH((RRXFscCsdS(N((RRK((RR_JscCsdS(N((RR>((RR?NscCsdS(N((RR>((RRARscCsdS(N((RR((RR1VscCsdS(N((RR((Rthandle_commentZscCsdS(N((Rtdecl((Rthandle_decl^scCsdS(N((RR((RRDbscCs|id|fƒdS(Nsunknown declaration: %r(RR!R(RR((Rtunknown_declescCssd|jo|Sn|iddƒ}|iddƒ}|iddƒ}|idd	ƒ}|id
dƒ}|S(NR)s&lt;R's&gt;Rs&apos;t's&quot;REs&amp;(tstreplace(RRe((RRQis
(RR(R
RRRYR	RRRR!RR"R#R%R&RR9R5RFR7RWRXR_R?RAR1R`RbRDRcRQ(((RRCs6										P		3												(RRtretcompileRR$RBR@R<R4RCtcommentcloseRIRLtVERBOSER[R]R^t	ExceptionRRR(R4RR[RR<RR]R$RIRR@RLRgR^RCRiRB((Rt?s"
		

Anon7 - 2021