| Server IP : 198.38.94.13 / Your IP : 216.73.217.33 Web Server : Apache System : Linux d4744.dxb1.stableserver.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : revivere ( 1140) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib64/python3.9/lib2to3/pgen2/__pycache__/ |
Upload File : |
a
�ic � @ sP d Z ddlZddddddd d
ddd
�
Zdd� Zdd� Zdd� ZedkrLe� dS )z<Safely evaluate Python string literals without using eval().� N����
�
� ��'�"�\)
�a�b�f�n�r�t�vr r
r c C s� | � dd�\}}|�d�sJ �t�|�}|d ur4|S |�d�r�|dd � }t|�dk rbtd| ��zt|d�}W q� ty� td| �d �Y q�0 n0zt|d�}W n ty� td | �d �Y n0 t|�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�escape s$
r&