AlkantarClanX12

Your IP : 13.59.2.242


Current Path : /opt/alt/python312/lib64/python3.12/lib2to3/pgen2/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/lib2to3/pgen2/__pycache__/literals.cpython-312.opt-1.pyc

�

�Q�fc��V�dZddlZddddddd	d
ddd
�
Zd�Zd�Zd�Zedk(re�yy)z<Safely evaluate Python string literals without using eval().�N����
�
�	��'�"�\)
�a�b�f�n�r�t�vr
rrc��|jdd�\}}tj|�}|�|S|jd�r9|dd}t	|�dkrtd|z��	t
|d�}t|�S	t
|d�}t|�S#t
$rtd|z�d�wxYw#t
$rtd|z�d�wxYw)	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�tail�esc�hexes�is      �=/opt/alt/python312/lib64/python3.12/lib2to3/pgen2/literals.py�escaper)s�������1�
�I�C��
�
�
�T�
"�C�
���
����s���Q�R����u�:��>��A�D�H�I�I�	T��E�2��A��q�6�M�		V��D�!��A��q�6�M���	T��A�D�H�I�t�S�	T��
�	V��C�d�J�K�QU�U�	V�s�"B�:B-�B*�-Cc��|d}|dd|dzk(r|dz}|t|�t|�}tjdt|�S)Nr�z)\\(\'|\"|\\|[abfnrtv]|x.{0,2}|[0-7]{1,3}))r�re�subr))�s�qs  r(�
evalStringr0(sQ��	�!��A���!�u��!��|�
�a�C��	
�#�a�&�#�a�&���A�
�6�6�>���J�J�c��td�D]7}t|�}t|�}t|�}||k7s�*t	||||��9y)N�)�ranger!�reprr0�print)r'�cr.�es    r(�testr92s@��
�3�Z����F����G���q�M����6��!�Q��1��r1�__main__)�__doc__r,rr)r0r9�__name__�r1r(�<module>r>sW��C�	�����������	���*K���z���F�r1