AlkantarClanX12

Your IP : 3.144.255.116


Current Path : /opt/alt/python311/lib64/python3.11/lib2to3/pgen2/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/lib2to3/pgen2/__pycache__/literals.cpython-311.opt-1.pyc

�

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