관리-도구
편집 파일: fix_metaclass.cpython-311.opt-2.pyc
� c��f � �~ � d dl mZ d dlmZ d dlmZmZmZ d� Zd� Z d� Z d� Zd� Zd � Z G d � dej � � ZdS ) � )� fixer_base)�token)�syms�Node�Leafc �R � | j D ]�}|j t j k rt |� � c S |j t j k r`|j rY|j d }|j t j k r7|j r0|j d }t |t � � r|j dk r dS ��dS )N� � __metaclass__TF) �children�typer �suite� has_metaclass�simple_stmt� expr_stmt� isinstancer �value)�parent�node� expr_node� left_sides �B/opt/alt/python311/lib64/python3.11/lib2to3/fixes/fix_metaclass.pyr r s� � �� �� � ���9�� �"�"� ��&�&�&�&�&� �Y�$�*� *� *�t�}� *�� �a�(�I��~���/�/�I�4F�/�%�.�q�1� ��i��.�.� �!��?�:�:��4�4���5� c � � | j D ]}|j t j k r d S �t | j � � D ]\ }}|j t j k r n�t d� � �t t j g � � }| j |dz d � r]| j |dz }|� |� � � � � |� � � | j |dz d � �]| � |� � |}d S )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�� �"�"��F�F� #� �X�.�/�/� 7� 7���4��9���#�#��E� $� �5�6�6�6� ���R� � �E� � �A�a�C�D�D� !� ��%�a��c�*� � ���9�?�?�,�,�-�-�-������� � �A�a�C�D�D� !� � ���%� � � ��D�D�Dr c �p � t |j � � D ]\ }}|j t j k r n�d S |� � � t t j g � � }t t j |g� � }|j |d � rW|j | }|� |� � � � � |� � � |j |d � �W| � ||� � |j d j d }|j d j d } | j |_ d S )Nr )r r r r �SEMIr r r r r r r �insert_child�prefix) r r"