File: //lib64/python3.9/lib2to3/fixes/__pycache__/fix_methodattrs.cpython-39.opt-2.pyc
a
    �DOg^  �                   @   s:   d dl mZ d dlmZ dddd�ZG dd� dej�Zd	S )
�   )�
fixer_base)�Name�__func__�__self__z__self__.__class__)Zim_funcZim_selfZim_classc                   @   s   e Zd ZdZdZdd� ZdS )�FixMethodattrsTzU
    power< any+ trailer< '.' attr=('im_func' | 'im_self' | 'im_class') > any* >
    c                 C   s.   |d d }t |j }|�t||jd�� d S )N�attr�    )�prefix)�MAP�value�replacer   r	   )�selfZnode�resultsr   �new� r   �5/usr/lib64/python3.9/lib2to3/fixes/fix_methodattrs.py�	transform   s    
zFixMethodattrs.transformN)�__name__�
__module__�__qualname__Z
BM_compatibleZPATTERNr   r   r   r   r   r      s   r   N)� r   Z
fixer_utilr   r
   ZBaseFixr   r   r   r   r   �<module>   s   �