Your IP : 3.135.185.207
�
c��f� � �P � d dl mZ d dlmZ ddd�Z G d� dej � � ZdS ) � )�token)�
fixer_base�chr�str)�unichr�unicodec �, � � e Zd ZdZdZ� fd�Zd� Z� xZS )�
FixUnicodeTzSTRING | 'unicode' | 'unichr'c �v �� t t | � � � ||� � d|j v | _ d S )N�unicode_literals)�superr
�
start_tree�future_featuresr )�self�tree�filename� __class__s ��@/opt/alt/python311/lib64/python3.11/lib2to3/fixes/fix_unicode.pyr zFixUnicode.start_tree s9 �� �
�j�$���*�*�4��:�:�:� 2�d�6J� J����� c �� � |j t j k r-|� � � }t |j |_ |S |j t j k r�|j }| j s@|d dv r6d|v r2d� d� |� d� � D � � � � }|d dv r
|dd � }||j k r|S |� � � }||_ |S d S )N� z'"�\z\\c �b � g | ],}|� d d� � � 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.transform s� � ��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�PATTERNr r, �
__classcell__)r s @r r
r
sV �� � � � � ��M�-�G�K� K� K� K� K�� � � � � � r r
N)�pgen2r � r r# �BaseFixr
� r r �<module>r7 st ��� � � � � � � � � � � � ��%�0�0��� � � � ��#� � � � � r