Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /usr/lib64/python2.7/Demo/xml/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.7/Demo/xml/roundtrip.pyo
�
V
�Qc@s�dZddlZddlmZmZmZdejfd��YZedkr�e�Z	e	j
e��e	jejd�ndS(ss
A simple demo that reads in an XML document and spits out an equivalent,
but not necessarily identical, document.
i����N(tsaxutilsthandlertmake_parsertContentGeneratorcBsMeZejd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
RS(cCstjj|�||_dS(N(RtContentHandlert__init__t_out(tselftout((s*/usr/lib64/python2.7/Demo/xml/roundtrip.pyRscCs|jjd�dS(Ns,<?xml version="1.0" encoding="iso-8859-1"?>
(Rtwrite(R((s*/usr/lib64/python2.7/Demo/xml/roundtrip.pyt
startDocumentscCsh|jjd|�x=|j�D]/\}}|jjd|tj|�f�q!W|jjd�dS(Nt<s %s="%s"t>(RR	titemsRtescape(Rtnametattrstvalue((s*/usr/lib64/python2.7/Demo/xml/roundtrip.pytstartElements'cCs|jjd|�dS(Ns</%s>(RR	(RR((s*/usr/lib64/python2.7/Demo/xml/roundtrip.pyt
endElementscCs|jjtj|��dS(N(RR	RR(Rtcontent((s*/usr/lib64/python2.7/Demo/xml/roundtrip.pyt
characters scCs|jj|�dS(N(RR	(RR((s*/usr/lib64/python2.7/Demo/xml/roundtrip.pytignorableWhitespace#scCs|jjd||f�dS(Ns	<?%s %s?>(RR	(Rttargettdata((s*/usr/lib64/python2.7/Demo/xml/roundtrip.pytprocessingInstruction&s(t__name__t
__module__tsyststdoutRR
RRRRR(((s*/usr/lib64/python2.7/Demo/xml/roundtrip.pyRs					t__main__i(
t__doc__Rtxml.saxRRRRRRtparsertsetContentHandlertparsetargv(((s*/usr/lib64/python2.7/Demo/xml/roundtrip.pyt<module>s	

ZeroDay Forums Mini