ok
Direktori : /lib64/python3.6/lib2to3/pgen2/__pycache__/ |
Current File : //lib64/python3.6/lib2to3/pgen2/__pycache__/literals.cpython-36.opt-1.pyc |
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�\}}tj|�}|d k r&|S |jd�r�|dd � }t|�dk rTtd| ��yt|d�}W q� tk r� td| ��Y q�X n0yt|d�}W n tk r� td| ��Y nX t|�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�escZhexes�i� r% � /usr/lib64/python3.6/literals.py�escape s"