![]() Server : LiteSpeed System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : claqxcrl ( 523) PHP Version : 8.1.32 Disable Function : NONE Directory : /proc/thread-self/root/lib64/python3.6/lib2to3/pgen2/__pycache__/ |
3 \O � @ 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� | j dd�\}}|jd�st�tj|�}|d k r4|S |jd�r�|dd � }t|�dk rbtd| ��yt|d�}W q� tk r� td| ��Y q�X n0yt|d�}W n tk r� td | ��Y nX t|�S ) Nr � r �x� z!invalid hex string escape ('\%s')� � z#invalid octal string escape ('\%s')) �group� startswith�AssertionError�simple_escapes�get�len� ValueError�int�chr)�m�all�tail�escZhexes�i� r&