Sh3ll
OdayForums


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/python311/lib64/python3.11/lib2to3/pgen2/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python311/lib64/python3.11/lib2to3/pgen2/__pycache__/literals.cpython-311.pyc
�

�,dc��b�dZddlZddddddd	d
ddd
�
Zd�Zd�Zd�Zedkre��dSdS)z<Safely evaluate Python string literals without using eval().�N����
�
�	��'�"�\)
�a�b�f�n�r�t�vr
rrc��|�dd��\}}|�d��sJ�t�|��}|�|S|�d��rb|dd�}t	|��dkrtd|z���	t
|d��}nT#t
$rtd|z��d�wxYw	t
|d��}n!#t
$rtd	|z��d�wxYwt|��S)
Nr�r�x�z!invalid hex string escape ('\%s')��z#invalid octal string escape ('\%s'))�group�
startswith�simple_escapes�get�len�
ValueError�int�chr)�m�all�tail�esc�hexes�is      �=/opt/alt/python311/lib64/python3.11/lib2to3/pgen2/literals.py�escaper)s1������1�
�
�I�C���>�>�$������
�
�
�T�
"�
"�C�
���
����s���V��Q�R�R����u�:�:��>�>��A�D�H�I�I�I�	T��E�2���A�A���	T�	T�	T��A�D�H�I�I�t�S�	T����	V��D�!���A�A���	V�	V�	V��C�d�J�K�K�QU�U�	V�����q�6�6�Ms�B%�%C�C�C6c��|�d��s4|�d��sJt|dd������|d}|dd�|dzkr|dz}|�|��s-Jt|t|��d������t|��dt|��zksJ�|t|��t|���}t	jdt|��S)Nr
rrr�rz)\\(\'|\"|\\|[abfnrtv]|x.{0,2}|[0-7]{1,3}))r�repr�endswithr�re�subr))�s�qs  r(�
evalStringr2(s����<�<����>����S� 1� 1�>�>�4��"�1�"��;�;�>�>�>�	�!��A���!��u��!��|�|�
�a�C���:�:�a�=�=�+�+�$�q�#�a�&�&����{�+�+�+�+�+��q�6�6�Q�s�1�v�v�X�����	�#�a�&�&�#�a�&�&��.��A�
�6�>���J�J�J�c��td��D]G}t|��}t|��}t|��}||krt	||||���HdS)N�)�ranger!r,r2�print)r'�cr0�es    r(�testr:2s`��
�3�Z�Z������F�F����G�G���q�M�M����6�6��!�Q��1������r3�__main__)�__doc__r.rr)r2r:�__name__�r3r(�<module>r?s���C�B�	�	�	�	�����������	�	�����*K�K�K�����z����D�F�F�F�F�F��r3

ZeroDay Forums Mini