
    daf^                     V    d Z ddlmZ ddlmZ ddddZ G d d	ej                        Zy
)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y)FixMethodattrsTzU
    power< any+ trailer< '.' attr=('im_func' | 'im_self' | 'im_class') > any* >
    c                     |d   d   }t         |j                     }|j                  t        ||j                               y )Nattr    )prefix)MAPvaluereplacer   r   )selfnoderesultsr   news        8/root/Python-3.12.4/Lib/lib2to3/fixes/fix_methodattrs.py	transformzFixMethodattrs.transform   s4    vq!$**oT#dkk23    N)__name__
__module____qualname__BM_compatiblePATTERNr    r   r   r   r      s    MG4r   r   N)__doc__ r   
fixer_utilr   r   BaseFixr   r   r   r   <module>r$      s6   
   %	4Z'' 	4r   