AlkantarClanX12

Your IP : 3.142.171.100


Current Path : /proc/self/root/opt/alt/python33/lib64/python3.3/lib2to3/pgen2/__pycache__/
Upload File :
Current File : //proc/self/root/opt/alt/python33/lib64/python3.3/lib2to3/pgen2/__pycache__/literals.cpython-33.pyc

�
��fOc@s�dZddlZi
dd6dd6dd6d	d
6dd6d
d6dd6dd6dd6dd6Zdd�Zdd�Zdd�Zedkr�e�ndS(u<Safely evaluate Python string literals without using eval().iNuuauubuufu
unu
uru	utuuvu'u"u\cCs
|jdd�\}}|jd�s-t�tj|�}|dk	rL|S|jd�r�|dd�}t|�dkr�td|��nyt|d�}Wqtk
r�td|��YqXn8yt|d�}Wn"tk
rtd	|��YnXt	|�S(
Niiu\uxiu!invalid hex string escape ('\%s')iiu#invalid octal string escape ('\%s')(
ugroupu
startswithuAssertionErrorusimple_escapesugetuNoneulenu
ValueErroruintuchr(umuallutailuescuhexesui((u;/opt/alt/python33/lib64/python3.3/lib2to3/pgen2/literals.pyuescapes$

uescapecCs�|jd�s:|jd�s:tt|dd����|d}|dd�|dkrk|d}n|j|�s�tt|t|�d����t|�dt|�ks�t�|t|�t|��}tjdt|�S(Nu'u"iiiiu)\\(\'|\"|\\|[abfnrtv]|x.{0,2}|[0-7]{1,3})(u
startswithuAssertionErrorurepruendswithulenureusubuescape(usuq((u;/opt/alt/python33/lib64/python3.3/lib2to3/pgen2/literals.pyu
evalString(s:

2"u
evalStringcCsaxZtd�D]L}t|�}t|�}t|�}||kr
t||||�q
q
WdS(Ni(urangeuchrurepru
evalStringuprint(uiucusue((u;/opt/alt/python33/lib64/python3.3/lib2to3/pgen2/literals.pyutest2sutestu__main__(u__doc__ureusimple_escapesuescapeu
evalStringutestu__name__(((u;/opt/alt/python33/lib64/python3.3/lib2to3/pgen2/literals.pyu<module>s