관리-도구
편집 파일: fix_newstyle.cpython-311.pyc
� �܋fx � �b � d Z ddlmZ ddlmZmZmZ ddlmZ d� Z G d� dej � � ZdS ) z8 Fixer for "class Foo: ..." -> "class Foo(object): ..." � )� fixer_base)�LParen�RParen�Name)�touch_import_topc �� � | � |t � � � � | � |t d� � � � | � |t � � � � d S )N�object)�insert_childr r r )�node�idxs �q/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/libpasteurize/fixes/fix_newstyle.py� insert_objectr sX � ����c�6�8�8�$�$�$����c�4� �?�?�+�+�+����c�6�8�8�$�$�$�$�$� c � � e Zd ZdZd� ZdS )�FixNewstylez0classdef< 'class' NAME ['(' ')'] colon=':' any >c � � |d }|j � |� � }|j |dz j dk r+|j |dz j dk r|j |dz |�= |dz }t ||� � t dd|� � d S )N�colon� �(� �)�builtinsr )�children�index�valuer r )�selfr �resultsr r s r � transformzFixNewstyle.transform s� � ���!���m�!�!�%�(�(���M�#�a�%� �&�#�-�-��M�#�a�%� �&�#�-�-�� �c�!�e�C�i�(��1�H�C��d�C� � � ���h��5�5�5�5�5r N)�__name__� __module__�__qualname__�PATTERNr � r r r r s+ � � � � � � B�G�6� 6� 6� 6� 6r r N)�__doc__�lib2to3r �lib2to3.fixer_utilr r r �libfuturize.fixer_utilr r �BaseFixr r# r r �<module>r) s� ��� � � � � � � � 3� 3� 3� 3� 3� 3� 3� 3� 3� 3� 3� 3� 3� 3� 3� 3�%� %� %� 6� 6� 6� 6� 6�*�$� 6� 6� 6� 6� 6r