Your IP : 3.135.185.207


Current Path : /opt/alt/python311/lib64/python3.11/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/lib2to3/fixes/__pycache__/fix_unicode.cpython-311.opt-2.pyc

�

c��f���P�	ddlmZddlmZddd�ZGd�dej��ZdS)	�)�token)�
fixer_base�chr�str)�unichr�unicodec�,��eZdZdZdZ�fd�Zd�Z�xZS)�
FixUnicodeTzSTRING | 'unicode' | 'unichr'c�v��tt|���||��d|jv|_dS)N�unicode_literals)�superr
�
start_tree�future_featuresr)�self�tree�filename�	__class__s   ��@/opt/alt/python311/lib64/python3.11/lib2to3/fixes/fix_unicode.pyrzFixUnicode.start_trees9���
�j�$���*�*�4��:�:�:� 2�d�6J� J�����c���|jtjkr-|���}t|j|_|S|jtjkr�|j}|js@|ddvr6d|vr2d�d�|�	d��D����}|ddvr
|dd�}||jkr|S|���}||_|SdS)N�z'"�\z\\c�b�g|],}|�dd���dd����-S)z\uz\\uz\Uz\\U)�replace)�.0�vs  r�
<listcomp>z(FixUnicode.transform.<locals>.<listcomp> sF��"�"�"���I�I�e�V�,�,�4�4�U�F�C�C�"�"�"r�uU�)
�typer�NAME�clone�_mapping�value�STRINGr�join�split)r�node�results�new�vals     r�	transformzFixUnicode.transforms����9��
�"�"��*�*�,�,�C� ���,�C�I��J�
�Y�%�,�
&�
&��*�C��(�
�S��V�u�_�_������j�j�"�"� �Y�Y�u�-�-�"�"�"�����1�v��~�~��!�"�"�g���d�j� � ����*�*�,�,�C��C�I��J�'�
&r)�__name__�
__module__�__qualname__�
BM_compatible�PATTERNrr,�
__classcell__)rs@rr
r
sV��������M�-�G�K�K�K�K�K�������rr
N)�pgen2r�rr#�BaseFixr
�rr�<module>r7st����������������%�0�0��������#�����r

?>