AlkantarClanX12

Your IP : 3.136.19.124


Current Path : /opt/alt/python312/lib64/python3.12/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/lib2to3/fixes/__pycache__/fix_unicode.cpython-312.pyc

�

�Q�f���T�dZddlmZddlmZddd�ZGd�dej�Zy	)
z�Fixer for unicode.

* Changes unicode to str and unichr to chr.

* If "...\u..." is not unicode literal change it into "...\\u...".

* Change u"..." into "...".

�)�token)�
fixer_base�chr�str)�unichr�unicodec�,��eZdZdZdZ�fd�Zd�Z�xZS)�
FixUnicodeTzSTRING | 'unicode' | 'unichr'c�T��tt|�||�d|jv|_y)N�unicode_literals)�superr
�
start_tree�future_featuresr)�self�tree�filename�	__class__s   ��@/opt/alt/python312/lib64/python3.12/lib2to3/fixes/fix_unicode.pyrzFixUnicode.start_trees'���
�j�$�*�4��:� 2�d�6J�6J� J���c	�$�|jtjk(r*|j�}t|j
|_|S|jtjk(r�|j
}|jsY|ddvrRd|vrNdj|jd�D�cgc]$}|jdd�jdd���&c}�}|dd	vr|d
d}||j
k(r|S|j�}||_|Sycc}w)N�z'"�\z\\z\uz\\uz\Uz\\U�uU�)�typer�NAME�clone�_mapping�value�STRINGr�join�split�replace)r�node�results�new�val�vs      r�	transformzFixUnicode.transforms����9�9��
�
�"��*�*�,�C� ����,�C�I��J�
�Y�Y�%�,�,�
&��*�*�C��(�(�S��V�u�_�����j�j� �Y�Y�u�-�"�-���I�I�e�V�,�4�4�U�F�C�-�"����1�v��~��!�"�g���d�j�j� ����*�*�,�C��C�I��J�'��"s�&)D
)�__name__�
__module__�__qualname__�
BM_compatible�PATTERNrr)�
__classcell__)rs@rr
r
s����M�-�G�K�rr
N)�__doc__�pgen2r�rr�BaseFixr
�rr�<module>r5s.������%�0����#�#�r