ok

Mini Shell

Direktori : /proc/thread-self/root/proc/self/root/usr/lib64/python2.7/Demo/xml/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/usr/lib64/python2.7/Demo/xml/rss2html.pyc

�
��^c@s�dZddlZddlZddlmZmZdZdZdejfd��YZ	e
dkr�e�Zeje	��ej
ejd	�ndS(
sx
A demo that reads in an RSS XML document and emits an HTML file containing
a list of the individual items in the feed.
i����N(tmake_parserthandlers�<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
  <title>%s</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>

<body>
<h1>%s</h1>
sU
</ul>

<hr>
<address>
Converted to HTML by rss2html.py.
</address>

</body>
</html>
t
RSSHandlercBs2eZejd�Zd�Zd�Zd�ZRS(cCsbtjj|�tjd�|�|_d|_d|_t	|_
d|_d|_d|_
dS(Nsutf-8t(RtContentHandlert__init__tcodecst	getwritert_outt_texttNonet_parenttFalset
_list_startedt_titlet_linkt_descr(tselftout((s)/usr/lib64/python2.7/Demo/xml/rss2html.pyR)s					cCs=|dks$|dks$|dkr0||_nd|_dS(NtchanneltimagetitemR(RR	(Rtnametattrs((s)/usr/lib64/python2.7/Demo/xml/rss2html.pytstartElement6s$cCsb|jdkrg|dkr>|jjt|j|jf�q?|dkr?|jjd|j�q?n�|jdkr?|dkr�|j|_q?|dkr�|j|_q?|dkr�|j|_q?|dkr?|js�|jjd�t	|_n|jjd|j|j|jf�d|_d|_d	|_q?n|d
kr^|jjt�ndS(NRttitletdescriptions
<p>%s</p>
Rtlinks<ul>
s  <li><a href="%s">%s</a> %s
Rtrss(RRtwritettopR	RRRR
tTrueR
tbottom(RR((s)/usr/lib64/python2.7/Demo/xml/rss2html.pyt
endElement<s.#			cCs|j||_dS(N(R	(Rtcontent((s)/usr/lib64/python2.7/Demo/xml/rss2html.pyt
charactersYs(t__name__t
__module__tsyststdoutRRR!R#(((s)/usr/lib64/python2.7/Demo/xml/rss2html.pyR's
		t__main__i(t__doc__R&Rtxml.saxRRRR RRR$tparsertsetContentHandlertparsetargv(((s)/usr/lib64/python2.7/Demo/xml/rss2html.pyt<module>s7	

Zerion Mini Shell 1.0