
    ZQd^                     T    d Z ddlmZ ddlmZ ddddZ G d d	ej                  Zd
S )z;Fix bound method attributes (method.im_? -> method.__?__).
   )
fixer_base)Name__func____self__z__self__.__class__)im_funcim_selfim_classc                       e Zd ZdZdZd ZdS )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        4/usr/lib/python3.11/lib2to3/fixes/fix_methodattrs.py	transformzFixMethodattrs.transform   sB    vq!$*oT#dk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 	4Z' 	4 	4 	4 	4 	4r   