/opt/imh/python3.13/lib/python3.13/html/__pycache__
NameSizeModeActions
entities.cpython-313.pyc976840644editdlrm
parser.cpython-313.pyc206780644editdlrm
__init__.cpython-313.pyc43940644editdlrm
Edit: /opt/imh/python3.13/lib/python3.13/html/__pycache__/parser.cpython-313.pyc (20678B)
eMSrSSKrSSKrSSKJr SSKJr S/r\R"S5r \R"S5r \R"S5r \R"S 5r \R"S 5r\R"S 5r\R"S 5r\R"S 5r\R"S5r\R"S5r\R"S5r\R"S\R*5r\R"S\R*5r\R"S\R*5r\R"S 5r\R"S5rSrSr"SS\R:5rg)zA parser for HTML and XHTML.N)unescape)html5 HTMLParserz[&<]z &[a-zA-Z#]z%&([a-zA-Z][-.a-zA-Z0-9]*)[^a-zA-Z0-9]z)&#(?:[0-9]+|[xX][0-9a-fA-F]+)[^0-9a-fA-F]z6&(#[0-9]+|#[xX][0-9a-fA-F]+|[a-zA-Z][a-zA-Z0-9]*)[;=]?z <[a-zA-Z]z z--!?>z-?>z0([a-zA-Z][^\t\n\r\f />]*)(?:[\t\n\r\f ]|/(?!>))*a{ ( (?<=['"\t\n\r\f /])[^\t\n\r\f />][^\t\n\r\f /=>]* # attribute name ) ([\t\n\r\f ]*=[\t\n\r\f ]* # value indicator ('[^']*' # LITA-enclosed value |"[^"]*" # LIT-enclosed value |(?!['"])[^>\t\n\r\f ]* # bare value ) )? (?:[\t\n\r\f ]|/(?!>))* # possibly followed by a space a [a-zA-Z][^\t\n\r\f />]* # tag name [\t\n\r\f /]* # optional whitespace before attribute name (?:(?<=['"\t\n\r\f /])[^\t\n\r\f />][^\t\n\r\f /=>]* # attribute name (?:[\t\n\r\f ]*=[\t\n\r\f ]* # value indicator (?:'[^']*' # LITA-enclosed value |"[^"]*" # LIT-enclosed value |(?!['"])[^>\t\n\r\f ]* # bare value ) )? [\t\n\r\f /]* # possibly followed by a space )* >? aF <[a-zA-Z][^\t\n\r\f />\x00]* # tag name (?:[\s/]* # optional whitespace before attribute name (?:(?<=['"\s/])[^\s/>][^\s/=>]* # attribute name (?:\s*=+\s* # value indicator (?:'[^']*' # LITA-enclosed value |"[^"]*" # LIT-enclosed value |(?!['"])[^>\s]* # bare value ) \s* # possibly followed by a space )?(?:\s|/(?!>))* )* )? \s* # trailing whitespace z#cURS5nURS5(a [U5$URS5(dUSS[;a [U5$U$)Nr&#=)group startswithrendswithhtml5_entities)matchrefs 1/opt/imh/python3.13/lib/python3.13/html/parser.py_replace_attr_charrefr\sU ++a.C ~~d} <<  QRN!:} Jc6[R[U5$N) attr_charrefsubr)ss r_unescape_attrvaluerhs   11 55rc^\rSrSrSrSrSrSS.U4SjjrU4SjrS r S r S r S r S S.Sjr SrSrSrS$SjrS%SjrSrSrSrSrSrSrSrSrSrSrSrS rS!rS"r S#r!U=r"$)&rlaFind 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). If convert_charrefs is True the character references are converted automatically to the corresponding Unicode character (and self.handle_data() is no longer split in chunks), otherwise they are passed by calling self.handle_entityref() or self.handle_charref() with the string containing respectively the named or numeric reference as the argument. )scriptstyle)textareatitleT)convert_charrefscN>[TU]5 XlUR5 g)zInitialize and reset this instance. If convert_charrefs is True (the default), all character references are automatically converted to the corresponding Unicode characters. N)super__init__r reset)selfr __class__s rr#HTMLParser.__init__s  0 rcp>SUlSUl[UlSUlSUl[ TU]5 g)z1Reset this instance. Loses all unprocessed data.z???NT)rawdatalasttaginteresting_normal interesting cdata_elem _escapabler"r$)r%r&s rr$HTMLParser.resets0  -  rcNURU-UlURS5 g)zyFeed data to the parser. Call this as often as you want, with as little or as much text as you want (may include '\n'). rN)r*goaheadr%datas rfeedHTMLParser.feeds ||d*  Qrc&URS5 g)zHandle any buffered data.r N)r2r%s rcloseHTMLParser.closes  QrNcUR$)z)Return full source of start tag: '<...>'.)_HTMLParser__starttag_textr8s rget_starttag_textHTMLParser.get_starttag_texts###rF escapablecUR5UlX lU(aZUR(dI[R "SUR-[R [R-5Ulg[R "SUR-[R [R-5Ulg)Nz&|])z])) lowerr.r/r recompile IGNORECASEASCIIr-)r%elemr@s rset_cdata_modeHTMLParser.set_cdata_modes}**,# T22!zz*Dt*V*,--*@ BD  "zz*BT__*T*,--*@ BD rc6[UlSUlSUlg)NT)r,r-r.r/r8s rclear_cdata_modeHTMLParser.clear_cdata_modes-rc URnSn[U5nX4:GaUR(a|UR(dkUR SU5nUS:aRUR S[ X4S- 55nUS:a,[R"S5RX&5(dGO3UnOHURRX#5nU(aUR5nOUR(aGOUnX5:aRUR(a.UR(aUR[X#U55 OURX#U5 URX55nX4:XaGOyUR nU"SU5(Gaw["R%X#5(aUR'U5n OU"SU5(aUR)U5n OU"SU5(aUR+U5n OiU"SU5(aUR-U5n OIU"S U5(aUR/U5n O)US -U:dU(aURS5 US -n OGOU S:GaU(dGOy["R%X#5(aGOaU"SU5(aPUS -U:XaURS5 GO7[0R%X#5(aGOUR3X#S -S5 GOU"SU5(aKUnS H,n UR5XS -5(dMU[U 5-n O UR3X#S -U5 OU"SU5(aUR7X#S-S5 OX#US-R95S:XaUR;X#S -S5 OUU"S U5(aUR3X#S -S5 O0U"SU5(aUR=X#S -S5 O [?S5eUn URX95nGOU"SU5(a[@R%X#5nU(a^URC5S Sn UREU 5 URG5n U"SU S - 5(dU S - n URX95nGMdSX#S;a*URX#US -5 URX3S -5nGO+U"SU5(Ga [HR%X#5nU(a\URCS 5n URKU 5 URG5n U"SU S - 5(dU S - n URX95nGM[LR%X#5nU(aIU(aAURC5X#S:Xa+URG5n X::aUn URX3S -5nO?US -U:a&URS5 URX3S -5nOOS5eX4:aGMU(ahX4:acUR(a.UR(aUR[X#U55 OURX#U5 URX45nX#SUlg)Nr<&"z [\t\n\r\f ;]>wOOA((//; AAu((T__$$Xgl%;<$$Wq\2q$Avu ++J#q!!%%g11++A.Aa(())!,A****1-Aa(( a(Aa((33A6A!eq[C$$S)AAq5#))'55#D!,,q5A: ,,T2'--g99 !//! >#FA..&8F&//!<< !S[ 0 %'9++GaCN;#K33))'A#$-8 1Q3--/;>((17#D!,,++GaCDM:#D!,,wst}5,-FGGANN1(D!$$ g1 ;;=2.D''- A%c1Q3//Eq,Agbk)((1Q38 NN1c2C##!3 ;;q>D))$/ A%c1Q3//Eq,A"((4u{{} ;!IIK6 !A NN1!e4!eq[$$S)qa%0A555qwez 15$$  'A,!78  1.q$Ar{ rcpURnX!US-S:XdS5eX!US-S:XaURU5$X!US-S:XaURU5$X!US-R5S:Xa7UR S US-5nUS :Xag UR X!S-U5 US -$UR U5$) NrUrTz+unexpected call to parse_html_declaration()rWrRrZrXr[rr\r )r*riparse_marked_sectionrBr_roparse_bogus_comment)r%rxr*gtposs rrk!HTMLParser.parse_html_declarationIs,,1~% D)C D% QqS>V #%%a( ( qs^{ *,,Q/ / qs^ ! ! #{ 2LLac*E{   WqS/ 07N++A. .rcNURnURSU5(dS5e[RX1S-5nU(d [R X1S-5nU(dgU(a&UR 5nURX1S-U5 UR5$)NrRz"unexpected call to parse_comment()rWr\) r*r commentcloserbcommentabruptcloserrcrmrt)r%rxreportr*rrzs rriHTMLParser.parse_comment^s,,!!&!,,R.RR,##GqS1&,,Wc:E  A   !Q 0yy{rcURnX1US-S;dS5eURSUS-5nUS:XagU(aURX1S-U5 US-$)NrU)rTrQz(unexpected call to parse_bogus_comment()rr\r )r*r_rm)r%rxrr*poss rrHTMLParser.parse_bogus_commentmsq,,1~- I1H I-ll3!$ "9    !C 0 1QwrcURnX!US-S:XdS5e[RX!S-5nU(dgUR5nUR X!S-U5 UR 5nU$)NrUrSzunexpected call to parse_pi()r\)r*picloserbrcrprtr%rxr*rrzs rrjHTMLParser.parse_piysn,,1~%F'FF%w!, KKM wsA' IIKrcSUlURU5nUS:aU$URnX1UUl/n[R X1S-5nU(dS5eUR 5nUR S5R5=UlnXb:a[R X65nU(dOUR SSS5upn U (dSn O0U SSSs=:Xa U SS:XdO U SSSs=:Xa U SS:XaO OU SSn U (a [U 5n URU R5U 45 UR 5nXb:aMX6UR5n U S ;aURX1U5 U$U RS 5(aURXt5 U$UR!Xt5 XpR";aUR%U5 U$XpR&;aUR%US S 9 U$) Nrr z#unexpected call to parse_starttag()rUrY'r\")r/>rTr?)r<check_for_whole_start_tagr*tagfind_tolerantrrtr rBr+attrfind_tolerantrappendstriprdr handle_startendtaghandle_starttagCDATA_CONTENT_ELEMENTSrHRCDATA_CONTENT_ELEMENTS) r%rxendposr*attrsrr|tagmattrnamerest attrvaluerts rrgHTMLParser.parse_starttags $//2 A:M,,&0 &&w!4;;;u IIK"[[^1133 sj!''3A()1a(8 %HI 2A$8)BC.82A#7237%aO / : LL(..*I6 7Aj%%' k !   Wv. /M <<    # #C /   ,111##C( 444##C4#8 rcURn[RX!S-5nU(deUR5nX$S- S:wagU$)Nr rr\)r* locatetagendrrtrs rr$HTMLParser.check_for_whole_start_tagsG,,""7aC0 u IIK Q3<3 rc.URnX!US-S:XdS5eURSUS-5S:ag[RX!5(d$X!S-US-S:XaUS-$UR U5$[ RX!S-5nU(deUR 5nX$S- S:wag[RX!S-5nU(deURS5R5nURU5 UR5 U$) NrUrQzunexpected call to parse_endtagrrr\rYr ) r*r_rlrrrrtrr rB handle_endtagrK)r%rxr*rrzrs rrhHTMLParser.parse_endtags ,,1~%H'HH% <<QqS !A %++s1Q33&s //22""7aC0 u IIK Q3<3 !&&w!4 ukk!n""$ 3 rcHURX5 URU5 gr)rrr%rrs rrHTMLParser.handle_startendtags S( 3rcgrrs rrHTMLParser.handle_starttag rcgrr)r%rs rrHTMLParser.handle_endtagrrcgrrr%r~s rrsHTMLParser.handle_charrefrrcgrrrs rrvHTMLParser.handle_entityrefrrcgrrr3s rrdHTMLParser.handle_datarrcgrrr3s rrmHTMLParser.handle_commentrrcgrr)r%decls rroHTMLParser.handle_declrrcgrrr3s rrpHTMLParser.handle_pirrcgrrr3s rrnHTMLParser.unknown_declrr)__starttag_textr/r.r r-r+r*)T)r )#__name__ __module__ __qualname____firstlineno____doc__rrr#r$r5r9r<r=rHrKr2rkrirrjrgrrhrrrrsrvrdrmrorprn__static_attributes__ __classcell__)r&s@rrrls*13+/O$16BG#X/*   ,`<           r)rrC _markupbasehtmlr html.entitiesrr__all__rDr,rwrurrrrfrlrrrrVERBOSErrlocatestarttagend_tolerant endendtag endtagfindrr ParserBaserrrrrsY" 1 .ZZ' ZZ % JJ> ? **@ AzzST zz+& ZZ % **S/zz(# ZZ'::QRJJ ZZ zz ZZ   ZZ)ZZ JJsO ZZ> ?  6V ''V r