https://t.me/RX1948
Server : LiteSpeed
System : Linux host 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
User : idnco5810 ( 1093)
PHP Version : 8.2.29
Disable Function : NONE
Directory :  /lib/python3.10/lib2to3/pgen2/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3.10/lib2to3/pgen2/__pycache__/literals.cpython-310.pyc
o

��bcc�@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�\}}|�d�sJ�t�|�}|dur|S|�d�rJ|dd�}t|�dkr1td|��z
t|d�}Wt|�StyItd|�d�wz
t|d�}Wt|�Stybtd	|�d�w)
Nr�r�x�z!invalid hex string escape ('\%s')��z#invalid octal string escape ('\%s'))�group�
startswith�simple_escapes�get�len�
ValueError�int�chr)�m�all�tail�esc�hexes�i�r&�-/usr/lib/python3.10/lib2to3/pgen2/literals.py�escapes*

����r(cCs�|�d�s|�d�sJt|dd����|d}|dd�|dkr&|d}|�|�s8Jt|t|�d����t|�dt|�ksDJ�|t|�t|��}t�dt|�S)Nr	r
rr�rz)\\(\'|\"|\\|[abfnrtv]|x.{0,2}|[0-7]{1,3}))r�repr�endswithr�re�subr()�s�qr&r&r'�
evalString(s($r0cCs@td�D]}t|�}t|�}t|�}||krt||||�qdS)N�)�rangerr*r0�print)r%�cr.�er&r&r'�test2s��r6�__main__)�__doc__r,rr(r0r6�__name__r&r&r&r'�<module>s&�
	
�

https://t.me/RX1948 - 2025