관리-도구
편집 파일: fix_methodattrs.cpython-311.opt-1.pyc
� c��f^ � �T � d Z ddlmZ ddlmZ dddd�Z G d� d ej � � Zd S )z;Fix bound method attributes (method.im_? -> method.__?__). � )� fixer_base)�Name�__func__�__self__z__self__.__class__)�im_func�im_self�im_classc � � e Zd ZdZdZd� ZdS )�FixMethodattrsTzU power< any+ trailer< '.' attr=('im_func' | 'im_self' | 'im_class') > any* > c � � |d d }t |j }|� t ||j �� � � � d S )N�attr� )�prefix)�MAP�value�replacer r )�self�node�resultsr �news �D/opt/alt/python311/lib64/python3.11/lib2to3/fixes/fix_methodattrs.py� transformzFixMethodattrs.transform sB � ��v��q�!���$�*�o�����T�#�d�k�2�2�2�3�3�3�3�3� N)�__name__� __module__�__qualname__� BM_compatible�PATTERNr � r r r r s/ � � � � � ��M��G�4� 4� 4� 4� 4r r N)�__doc__� r � fixer_utilr r �BaseFixr r r r �<module>r$ s� ��� � � � � � � � � � � � � � ��%�� �� 4� 4� 4� 4� 4�Z�'� 4� 4� 4� 4� 4r