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/21573/root/usr/lib/python2.4/site-packages/setroubleshoot/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21573/root/usr/lib/python2.4/site-packages/setroubleshoot/html_util.pyc
mò
3ÔUc@sšddddgZdkZdkZdkZdkTdkZdeifd„ƒYZdei	fd	„ƒYZ
d
„Zd„Zdd
„Z
d„ZdS(tescape_htmlt
unescape_htmlthtml_to_textt
html_documentN(t*t
TextWritercBs>tZdddd„Zd„Zd„Zd„Zd„ZRS(NiPicCs6tii|||ƒd|_||_|iƒdS(Ni(	t	Formattert
DumbWritert__init__tselftfiletmaxcoltindent_leveltindent_widtht_set_indent(R	R
RR
((t</usr/lib/python2.4/site-packages/setroubleshoot/html_util.pyR&s		cCs'|i|i|_d|i|_dS(Nt (R	RR
t
indent_coltindent(R	((RR,scCs||_|iƒdS(N(tlevelR	RR(R	tmarginR((Rt
new_margin0s	cCs]|d}t|ƒ|ijo|i|ƒn)|it|ƒ}|id||ƒdS(NR(tdatatlenR	Rtsend_literal_datatoffset(R	RR((Rtsend_label_data4s

cCs(|pdSn|ip|dtij}|i}|i}|ii}|i}|djo||i	ƒ|i
}nxˆ|iƒD]z}|oM|t
|ƒ|jo|d|i	ƒ|i
}qá|dƒ|d}n||ƒ|t
|ƒ}d}q‡W||_|dtij|_dS(Nis
Riiÿÿÿÿ(RR	tatbreaktstringt
whitespacetcolRR
twriteRRtsplittwordR(R	RRR!RRR((Rtsend_flowing_data<s.			







	(t__name__t
__module__tNoneRRRRR"(((RR%s
			tHTMLParserAnchorcBs&tZdd„Zd„Zd„ZRS(NicCstii|||ƒdS(N(thtmllibt
HTMLParserRR	t	formattertverbose(R	R)R*((RRVscCs
||_dS(N(threfR	tanchor(R	R+tnamettype((Rt
anchor_bgnYscCs/|io!|id|iƒd|_ndS(Ns (%s) (R	R,thandle_dataR%(R	((Rt
anchor_end\s
(R#R$RR/R1(((RR&Ts	cCss|djodSn|iddƒ}|iddƒ}|iddƒ}|iddƒ}|id	d
ƒ}|S(Nt&s&amp;t<s&lt;t>s&gt;t's&apos;t"s&quot;(tsR%treplace(R7((RRcs
cCsˆ|djodSnd|jo|Sn|iddƒ}|iddƒ}|iddƒ}|idd	ƒ}|id
dƒ}|S(NR2s&lt;R3s&gt;R4s&apos;R5s&quot;R6s&amp;(R7R%R8(R7((RRms

iPcCs–yetiƒ}tit||ƒƒ}t|ƒ}|i	|ƒ|iƒ|iƒ}|iƒ|SWn*tj
o}tid|ƒdSnXdS(Nscannot convert html to text: %s(tStringIOtbufferRtAbstractFormatterRRR)R&tparsertfeedthtmltclosetgetvaluettextt	Exceptiontetlog_programterrorR%(R>RR)RCR:R<RA((RRxs


cGsðd}d}|}xÍ|D]Å}t|ƒtjo||7}qt|ƒttgjox‚|D]}||7}q`Wqt
|ƒoO|ƒ}t|ƒttgjox&|D]}||7}q®WqÞ||7}q||7}qW||7}|S(s&Wrap the body components in a HTML document structure with a valid header.
    Accepts a variable number of arguments of of which canb be:
    * string
    * a sequences of strings (tuple or list).
    * a callable object taking no parameters and returning a string or sequence of strings.
    sl<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  </head>
  <body>
s
  </body>
</html>N(theadttailtdoctbody_componentstbody_componentR.tStringTypest	TupleTypetListTypetitemtcallabletresult(RIRFRNRHRJRGRP((RR†s,
	
(t__all__R'R)RRttypesR9RRR(R&RRRR(RRQR9R&RRRRR'RR((Rt?s				/	
	

Anon7 - 2021