Server : Apache System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64 User : nobody ( 99) PHP Version : 8.1.23 Disable Function : NONE Directory : /opt/alt/python38/lib64/python3.8/lib2to3/pgen2/__pycache__/ |
U ��,ac � @ 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�\}}|�d�st�t�|�}|d k r4|S |�d�r�|dd � }t|�dk rbtd| ��zt|d�}W q� tk r� td| �d �Y q�X n2zt|d�}W n" tk r� td | �d �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�tailZescZhexes�i� r% �;/opt/alt/python38/lib64/python3.8/lib2to3/pgen2/literals.py�escape s$ r'