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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21572/root/usr/lib64/python2.4/HTMLParser.pyo
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.cCs'||_|d|_|d|_dS(Nii(tmsgtselftpositiontlinenotoffset(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__R
RR(((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((RRZscCs/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|ƒ}xp||job|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‰PqqW|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 ref(RRtitlentnRtsearchtmatchtstarttjthandle_datat	updatepost
startswithtstarttagopentparse_starttagtktparse_endtagt
parse_commenttparse_pitparse_declarationtendR tcharreftgrouptnamethandle_charreft	entityrefthandle_entityreft
incomplete(
RR:R2R=R)R/R+RR5R-((RR„sŒ	


	




cCsb|i}ti||dƒ}|pdSn|iƒ}|i||d|!ƒ|i	ƒ}|S(Niiÿÿÿÿ(
RRtpicloseR,R)R-R.R/t	handle_piR:(RR)R/RR-((RR8Ôs	cCs†d|_|i|ƒ}
|
djo|
Sn|i}|||
!|_g}ti	||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
ƒ}qW|||
!iƒ}|d
jo‘|iƒ\}}	d
|ijo9||iid
ƒ}t|iƒ|iid
ƒ}	n|	t|iƒ}	|id|||
!d fƒn|id	ƒo|i ||ƒn/|i!||ƒ||i"jo|i#ƒn|
S(Niiiis'iÿÿÿÿt"Rs/>s
s junk characters in start tag: %ri(Rs/>($R
RR!tcheck_for_whole_start_tagR)tendposRtattrsttagfindR-R:R5tlowerRttagtattrfindtmR<tattrnametrestt	attrvaluetunescapetappendtstripRRRtcountR*trfindR tendswiththandle_startendtagthandle_starttagtCDATA_CONTENT_ELEMENTSR$(RR)R:RORLRMRRJRRRNR-R5RFRG((RR4à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)RLR:R/tnextR2R1R tAssertionError(RR)R/RLR[R((RREs*	



cCs¢|i}ti||dƒ}|pdSn|iƒ}ti||ƒ}|p|i	d|||!fƒn|i
dƒ}|i|i
ƒƒ|iƒ|S(Niiÿÿÿÿsbad end tag: %r(RRt	endendtagR,R)R-R:R/t
endtagfindR R<RJt
handle_endtagRIR%(RR)R/RJRR-((RR61s	
cCs!|i||ƒ|i|ƒdS(N(RRWRJRGR_(RRJRG((RRVAscCsdS(N((RRJRG((RRWFscCsdS(N((RRJ((RR_JscCsdS(N((RR=((RR>NscCsdS(N((RR=((RR@RscCsdS(N((RR((RR0VscCsdS(N((RR((Rthandle_commentZscCsdS(N((Rtdecl((Rthandle_decl^scCsdS(N((RR((RRCbscCs|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;RDs&amp;(tstreplace(RRe((RRPis
(RR(RR
RRXRRRRR R
R!R"R$R%RR8R4RER6RVRWR_R>R@R0R`RbRCRcRP(((RRCs6										P		3												(RRtretcompileRR#RAR?R;R3RBtcommentcloseRHRKtVERBOSERZR]R^t	ExceptionRRR(R3RRZRR;RR]R#RHRR?RKRgR^RBRiRA((Rt?s"
		

Anon7 - 2021