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/python35/lib64/python3.5/lib2to3/pgen2/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python35/lib64/python3.5/lib2to3/pgen2/__pycache__/literals.cpython-35.pyc


��YfO�@s�dZddlZddddddd	d
ddd
dddddddddi
Zdd�Zdd�Zdd�Zedkr�e�dS)z<Safely evaluate Python string literals without using eval().�N�a��b��f��n�
�r�
�t�	�v��'�"�\cCs
|jdd�\}}|jd�s-t�tj|�}|dk	rL|S|jd�r�|dd�}t|�dkr�td|��yt|d�}Wqtk
r�td|��YqXn8yt|d�}Wn"tk
r�td	|��YnXt|�S)
Nr�r�x�z!invalid hex string escape ('\%s')��z#invalid octal string escape ('\%s'))	�group�
startswith�AssertionError�simple_escapes�get�len�
ValueError�int�chr)�m�all�tail�escZhexes�i�r&�;/opt/alt/python35/lib64/python3.5/lib2to3/pgen2/literals.py�escapes$

r(cCs�|jd�s:|jd�s:tt|dd����|d}|dd�|dkrh|d}|j|�s�tt|t|�d����t|�dt|�ks�t�|t|�t|��}tjdt|�S)Nrrrr�rz)\\(\'|\"|\\|[abfnrtv]|x.{0,2}|[0-7]{1,3}))rr�repr�endswithr�re�subr()�s�qr&r&r'�
evalString(s:

2"r0cCs^xWtd�D]I}t|�}t|�}t|�}||kr
t||||�q
WdS)N�)�ranger r*r0�print)r%�cr.�er&r&r'�test2sr6�__main__)�__doc__r,rr(r0r6�__name__r&r&r&r'�<module>s 
	

ZeroDay Forums Mini