Hacked By AnonymousFox
a
R�fc � @ 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�\}}t�|�}|d ur&|S |�d�r�|dd � }t|�dk rTtd| ��zt|d�}W q� ty� td| �d �Y q�0 n0zt|d�}W n ty� td| �d �Y n0 t|�S ) 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/python39/lib64/python3.9/lib2to3/pgen2/literals.py�escape s"