Server IP : 184.154.167.98 / Your IP : 18.220.235.159 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib64/python3.8/lib2to3/pgen2/__pycache__/ |
Upload File : |
U e5dc � @ 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% �./usr/lib64/python3.8/lib2to3/pgen2/literals.py�escape s$ r'