Sh3ll
OdayForums


Server : LiteSpeed
System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : claqxcrl ( 523)
PHP Version : 8.1.32
Disable Function : NONE
Directory :  /opt/alt/python310/lib64/python3.10/lib2to3/pgen2/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python310/lib64/python3.10/lib2to3/pgen2/__pycache__/literals.cpython-310.opt-1.pyc
o

S�gc�@sTdZddlZddddddd	d
ddd
�
Zdd�Zdd�Zdd�Zedkr(e�dSdS)z<Safely evaluate Python string literals without using eval().�N����
�
�	��'�"�\)
�a�b�f�n�r�t�vr	r
rcCs�|�dd�\}}t�|�}|dur|S|�d�rC|dd�}t|�dkr*td|��z
t|d�}Wt|�StyBtd|�d�wz
t|d�}Wt|�Sty[td|�d�w)	Nr��x�z!invalid hex string escape ('\%s')��z#invalid octal string escape ('\%s'))�group�simple_escapes�get�
startswith�len�
ValueError�int�chr)�m�all�tailZescZhexes�i�r$�=/opt/alt/python310/lib64/python3.10/lib2to3/pgen2/literals.py�escapes(

����r&cCsH|d}|dd�|dkr|d}|t|�t|��}t�dt|�S)Nr�z)\\(\'|\"|\\|[abfnrtv]|x.{0,2}|[0-7]{1,3}))r�re�subr&)�s�qr$r$r%�
evalString(s
r,cCs@td�D]}t|�}t|�}t|�}||krt||||�qdS)N�)�ranger�reprr,�print)r#�cr*�er$r$r%�test2s��r3�__main__)�__doc__r(rr&r,r3�__name__r$r$r$r%�<module>s&�
	
�

ZeroDay Forums Mini