Your IP : 3.149.255.239
o
6��fc � @ sT d Z ddlZddddddd d
ddd
�
Zdd� Zdd� Zdd� Zedkr(e� dS dS )z<Safely evaluate Python string literals without using eval().� N����
�
� ��'�"�\)
�a�b�f�n�r�t�vr r
r c C s� | � dd�\}}t�|�}|d ur|S |�d�rC|dd � }t|�dk r*td| ��z
t|d�}W t|�S tyB td| �d �w z
t|d�}W t|�S ty[ 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�escape s(
����r&