관리-도구
편집 파일: literals.cpython-37.pyc
B � fc � @ 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| ��yt|d�}W q� tk r� td| �d �Y q�X n2yt|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/python37/lib64/python3.7/lib2to3/pgen2/literals.py�escape s$ r'