403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/py/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/py/__pycache__/_xmlgen.cpython-311.pyc
�

��a� ��`�dZddlZddlZejdkrd�Zdd�Znd�ZeZGd�de��ZGd	�d
e��Z	ede
fde	dd
���ZGd�de	��ZGd�de��Z
Gd�de
��ZGd�de
��ZGd�de��ZGd�d��Ze��ZdS)z�
module for generating and serializing xml and html structures
by using simple python objects.

(c) holger krekel, holger at merlinux eu. 2009
�N)�rc��|S�N���ss �,/usr/lib/python3/dist-packages/py/_xmlgen.py�ur

s����c�h�t|d��r|���St|��S)N�__unicode__)�hasattrr
�str)�x�errorss  r	�unicoders-���1�m�$�$�	#��=�=�?�?�"��1�v�v�
rc� �t|��Sr�rrs r	r
r
s���q�z�z�rc��eZdZd�ZdS)�NamespaceMetaclassc��|dd�dkrt|���|tkrtd���|j}|�||vrt|���i}|jr||d<t||jf|��}t|||��|S)N��_zNamespace class is abstract�xmlname)�AttributeError�	Namespace�
ValueError�__tagspec__�__stickyname__�type�__tagclass__�setattr)�self�name�tagspec�	classattr�clss     r	�__getattr__zNamespaceMetaclass.__getattr__s�������8�s�?�?� ��&�&�&��9����:�;�;�;��"����4�w�#6�#6� ��&�&�&��	���	(�#'�I�i� ��4�$�+�-�y�9�9����d�C� � � ��
rN)�__name__�
__module__�__qualname__r(rrr	rrs#������
�
�
�
�
rrc�R��eZdZGd�de��Z�fd�Zd�ZeZdd�Zd�Z	�xZ
S)	�Tagc��eZdZd�ZdS)�Tag.Attrc�:�|j�|��dSr)�__dict__�update)r#�kwargss  r	�__init__zTag.Attr.__init__(s���M� � ��(�(�(�(�(rN�r)r*r+r4rrr	�Attrr/'s#������	)�	)�	)�	)�	)rr6c�|��tt|���|��|jdi|��|_dS)Nr)�superr-r4r6�attr)r#�argsr3�	__class__s   �r	r4zTag.__init__+s>���
�c�4���!�!�$�'�'�'��D�I�'�'��'�'��	�	�	rc�.�|�d���S)Nr)�indentr�r#s r	r
zTag.__unicode__/s���|�|�1�|�%�%�%r�c��g}t|j|���|��td���|��S�N�)�SimpleUnicodeVisitor�append�visitr
�join�r#r=�ls   r	rzTag.unicode3s=�����Q�X�v�.�.�4�4�T�:�:�:���u�u�z�z�!�}�}�rc�B�|jj}d|t|��fzS)Nz<%r tag object %d>)r;r)�id)r#r$s  r	�__repr__zTag.__repr__8s"���~�&��#�t�R��X�X�&6�6�6r�r?)r)r*r+�objectr6r4r
�__str__rrK�
__classcell__�r;s@r	r-r-&s��������)�)�)�)�)�v�)�)�)�(�(�(�(�(�&�&�&��G�����
7�7�7�7�7�7�7rr-rF)rr!rc��eZdZdd�ZdS)�HtmlTagr?c��g}t|j|d����|��td���|��S)NF��
shortemptyrB)�HtmlVisitorrDrEr
rFrGs   r	rzHtmlTag.unicodeCsB�����A�H�f��7�7�7�=�=�d�C�C�C���u�u�z�z�!�}�}�rNrL)r)r*r+rrrr	rRrRBs(�����������rrRc��eZdZeZdZed�d�d��D����ZGd�de	��Z
dS)�htmlTc��g|]}|�|df��	S�rr��.0rs  r	�
<listcomp>zhtml.<listcomp>Ls2��
�
�
�!��
��1��
�
�
ra�a,abbr,acronym,address,applet,area,article,aside,audio,b,base,basefont,bdi,bdo,big,blink,blockquote,body,br,button,canvas,caption,center,cite,code,col,colgroup,command,comment,datalist,dd,del,details,dfn,dir,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,font,form,frame,frameset,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,i,iframe,img,input,ins,isindex,kbd,keygen,label,legend,li,link,listing,map,mark,marquee,menu,meta,meter,multicol,nav,nobr,noembed,noframes,noscript,object,ol,optgroup,option,output,p,param,pre,progress,q,rp,rt,ruby,s,samp,script,section,select,small,source,span,strike,strong,style,sub,summary,sup,table,tbody,td,textarea,tfoot,th,thead,time,title,tr,track,tt,u,ul,xmp,var,video,wbr�,c��eZdZd�ZdS)�
html.Stylec��|���D],\}}|�dd��}t|||���-dS)Nr�-)�items�replacer")r#�kwr�ys    r	r4zhtml.Style.__init__\sO�����
�
�
$�
$���1��I�I�c�3�'�'����a��#�#�#�#�
$�
$rNr5rrr	�Styler`[s#������	$�	$�	$�	$�	$rrgN)r)r*r+rRr!r�dict�splitrrMrgrrr	rXrXIs��������L��N��$�
�
�	G��e�C�j�j�
�
�
�
�
�K�$�$�$�$�$��$�$�$�$�$rrXc��eZdZdZd�ZdS)�rawz]just a box that can contain a unicode string that will be
    included directly in the outputc��||_dSr)�uniobj)r#rms  r	r4zraw.__init__es
������rN)r)r*r+�__doc__r4rrr	rkrkbs-������'�'�����rrkc�V�eZdZdZdd�Zd�Zd�Zd�Zd�Zd	�Z	d
�Z
d�Zd�Zd
�Z
d�ZdS)rCz% recursive visitor to write unicode. rTc�h�||_i|_i|_||_||_g|_||_dSr)�write�cache�visitedr=�	curindent�parentsrU)r#rqr=rtrUs     r	r4zSimpleUnicodeVisitor.__init__js7����
���
�������"������$����rc���|j}	|j|}nE#t$r8|jD]}t	||jd��}|�n�|j}||j|<YnwxYw||��dS)z( dispatcher on node's class/bases name. N)r;rr�KeyError�__mro__�getattrr)�_SimpleUnicodeVisitor__object)r#�noder'�visitmethod�subclasss     r	rEzSimpleUnicodeVisitor.visitss����n��		*��*�S�/�K�K���	*�	*�	*��K�
,�
,��%�d�H�,=�t�D�D���*��E�+�#�m��)�D�J�s�O�O�O�	*����	��D�����s�
�?A�Ac�d�|�tt|������dSr)rq�escaper�r#�objs  r	�__objectzSimpleUnicodeVisitor.__object�s(���
�
�6�'�#�,�,�'�'�(�(�(�(�(rc�:�|�|j��dSr)rqrmr�s  r	rkzSimpleUnicodeVisitor.raw�s���
�
�3�:�����rc��t|��|jvsJ�d|jt|��<|D]}|�|���dS)Nr)rJrsrE)r#r��elems   r	�listzSimpleUnicodeVisitor.list�s[���#�w�w�d�l�*�*�*�*� !���R��W�W���	�	�D��J�J�t�����	�	rc�.�t|��|jvsJ�	|jd|_n#t$r
d|_YnwxYwd|jt|��<t|d|jj��}|jrB|�	|��s-|�
dtd��|jzz��|r�|xj|jz
c_|�
td��||�
|��fz��|j�|��|D]}|�|���|j���|�
td��|z��|xj|jzc_dS||�
|��z}|�|��r(|�
td��|fz��dS|�
td	��||fz��dS)
N���rr�
� z<%s%s>z</%s>z<%s/>z	<%s></%s>)rJrsru�parent�
IndexErrorryr;r)rt�	_isinlinerqr
r=�
attributesrDrE�pop�_issingleton)r#�tag�tagnamer�nameattrs     r	r-zSimpleUnicodeVisitor.Tag�s����#�w�w�d�l�*�*�*�*�	���b�)�C�J�J���	�	�	��C�J�J�J�	���� !���R��W�W���#�y�#�-�*@�A�A���>�	7�$�.�.��"9�"9�	7��J�J�t�a��f�f�t�~�5�5�6�6�6��	A��N�N�d�k�)�N�N��J�J�q��{�{�g�t���s�/C�/C�%D�D�E�E�E��L����$�$�$��
�
���
�
�1�
�
�
�
��L�������J�J�q��z�z�G�+�,�,�,��N�N�d�k�)�N�N�N�N��t���s�3�3�3�H�� � ��)�)�
A��
�
�1�W�:�:���3�4�4�4�4�4��
�
�1�[�>�>�X�w�,?�?�@�@�@�@�@s�-�A�Ac�X�t|j��}|���g}|D]4}|�|j|��}|�|�|���5|�|�|����td���|��SrA)	�dirr9�sort�repr_attributerD�extend�getstyler
rF)r#r��attrlistrHr$�ress      r	r�zSimpleUnicodeVisitor.attributes�s����s�x�=�=���
�
�������	�	�D��%�%�c�h��5�5�C�������
�
�
��	������s�#�#�$�$�$���u�u�z�z�!�}�}�rc��|dd�dkrqt||��}|�d��r
|dd�}t|t��r|j}ntt
|����}d|�d|�d�SdS)Nr?�__rr�r�z="�")ry�endswith�
isinstancerkrmrr)r#�attrsr$�value�inserts     r	r�z#SimpleUnicodeVisitor.repr_attribute�s�������8�t����E�4�(�(�E��}�}�S�!�!�
!��C�R�C�y���%��%�%�
0����������/�/���!%���v�v�v�.�.��rc���	|jj}d�|���D��}td��td���|��zgS#t
$rgcYSwxYw)z- return attribute list suitable for styling. c�$�g|]
\}}|dz|z��S)z: r)r\rrfs   r	r]z1SimpleUnicodeVisitor.getstyle.<locals>.<listcomp>�s$��A�A�A���!��4��!��A�A�Arz style="%s"z; )�styler1rcr
rFr)r#r��	styledict�	stylelists    r	r�zSimpleUnicodeVisitor.getstyle�s���	@��	�*�I�B�A�y���/@�/@�A�A�A�I��m�$�$�q��w�w�|�|�I�'>�'>�>�?�?��	�	�	�	��I�I�I�	���s�A�A.�-A.c��|jS)�*can (and will) be overridden in subclassesrT�r#r�s  r	r�z!SimpleUnicodeVisitor._issingleton�s
����rc��dS)r�Frr�s  r	r�zSimpleUnicodeVisitor._isinline�s���urN)rrT)r)r*r+rnr4rErzrkr�r-r�r�r�r�r�rrr	rCrChs�������/�/�%�%�%�%�
�
�
�")�)�)�������A�A�A�4
�
�
�	/�	/�	/�@�@�@��������rrCc����eZdZed�d�d��D����Zed�d�d��D����Z�fd�Zd�Zd	�Z	�xZ
S)
rVc��g|]}|df��SrZrr[s  r	r]zHtmlVisitor.<listcomp>�s(��/�/�/�a�A�q�6�/�/�/rz3br,img,area,param,col,hr,meta,link,base,input,framer^c��g|]}|df��SrZrr[s  r	r]zHtmlVisitor.<listcomp>�s.��A�A�A�a�A�q�6�A�A�Arz�a abbr acronym b basefont bdo big br cite code dfn em font i img input kbd label q s samp select small span strike strong sub sup textarea tt u varr�c���|dkrt||��}|�dStt|���||��S)N�class_)ryr8rVr�)r#r�r$r�r;s    �r	r�zHtmlVisitor.repr_attribute�sG����8����E�4�(�(�E��}����[�$�'�'�6�6�u�d�C�C�Crc��||jvSr)�singler�s  r	r�zHtmlVisitor._issingleton�����$�+�%�%rc��||jvSr)�inliner�s  r	r�zHtmlVisitor._isinline�r�r)r)r*r+rhrir�r�r�r�r�rOrPs@r	rVrV�s��������
�T�/�/�"�#(�5��:�:�/�/�/�0�0�F��T�A�A�4�49�E�#�J�J�A�A�A�B�B�F�
D�D�D�D�D�&�&�&�&�&�&�&�&�&�&rrVc� �eZdZd�Zd�Zd�ZdS)�_escapec���td��td��td��td��td��td��td��td��td	��td
��i|_tjtd���|j�������|_dS)Nr�z&quot;�<z&lt;�>z&gt;�&z&amp;�'z&apos;�|)r
r�re�compilerF�keys�
charef_rexr>s r	r4z_escape.__init__�s���
�c�F�F�Q�x�[�[�!�C�&�&�1�V�9�9�a��f�f�q��y�y�
�c�F�F�Q�w�Z�Z��3���!�H�+�+�����*�Q�s�V�V�[�[���1A�1A�1C�1C�%D�%D�E�E����rc�B�|j|�d��S)Nr)r�group)r#�matchs  r	�	_replacerz_escape._replacer�s���{�5�;�;�q�>�>�*�*rc��	t|��}n"#t$rt|dd���}YnwxYw|j�|j|��S)z& xml-escape the given unicode string. zutf-8rd)r)r�UnicodeDecodeErrorr��subr�)r#�ustrings  r	�__call__z_escape.__call__�sh��	B��g�&�&�G�G��!�	B�	B�	B��g�w�y�A�A�A�G�G�G�	B������"�"�4�>�7�;�;�;s��1�1N)r)r*r+r4r�r�rrr	r�r��sD������F�F�F�+�+�+�<�<�<�<�<rr�r)rn�sysr��version_infor
rr rr�r-rMrrRrXrkrCrVr�rrrr	�<module>r�s��������������u�����������
����G���������� 7�7�7�7�7�$�7�7�7�,
��{�V�J����9�9�
�
�	������c����$�$�$�$�$�9�$�$�$�2�����&����j�j�j�j�j�6�j�j�j�X&�&�&�&�&�&�&�&�&�0<�<�<�<�<�<�<�<�&
������r

Youez - 2016 - github.com/yon3zu
LinuXploit