Your IP : 3.145.161.199
�
�Q�f � � � d dl mZ d dlmZ d dlmZmZmZ d� Zd� Z d� Z
d� Zd� Zd � Z
G d
� dej � Zy)
� )�
fixer_base)�token)�syms�Node�Leafc � � | j D ]� }|j t j k( r
t |� c S |j t j
k( s�K|j s�X|j d }|j t j k( s��|j s��|j d }t |t � s��|j dk( s�� y y)N� �
__metaclass__TF)
�children�typer �suite�
has_metaclass�simple_stmt� expr_stmt�
isinstancer �value)�parent�node� expr_node� left_sides �B/opt/alt/python312/lib64/python3.12/lib2to3/fixes/fix_metaclass.pyr r s� � ��
�����9�9��
�
�"� ��&�&�
�Y�Y�$�*�*�
*�t�}�}��
�
�a�(�I��~�~����/�I�4F�4F�%�.�.�q�1� ��i��.�!���?�:�� � � c � � | j D ]! }|j t j k( s�! y t | j � D ]$ \ }}|j t
j k( s�$ n t d� �t t j g � }| j |dz d rT| j |dz }|j |j � � |j � | j |dz d r�T| j |� |}y )NzNo class suite and no ':'!� )r r r r
� enumerater �COLON�
ValueErrorr �append_child�clone�remove)�cls_noder �ir
� move_nodes r �fixup_parse_treer$ - s� � �� �!�!���9�9��
�
�"�� "� �X�.�.�/���4��9�9����#�� 0� �5�6�6�
����R� �E�
�
�
�A�a�C�D�
!��%�%�a��c�*� �
���9�?�?�,�-����� �
�
�A�a�C�D�
!�
���%� ��Dr c �z � t |j � D ]$ \ }}|j t j k( s�$ n y |j � t
t j g � }t
t j |g� }|j |d rN|j | }|j |j � � |j � |j |d r�N| j ||� |j d j d }|j d j d } | j |_
y )Nr )r r r r �SEMIr r r r r r r �insert_child�prefix)
r r"