î
\á[\^  ã               @   s^   d  Z  d d l m Z d d l m Z i d d 6d d 6d d	 6Z Gd
 d „  d e j ƒ Z d S)z;Fix bound method attributes (method.im_? -> method.__?__).
é   )Ú
fixer_base)ÚNameÚ__func__Zim_funcÚ__self__Zim_selfz__self__.__class__Zim_classc               @   s(   e  Z d  Z d Z d Z d d „  Z d S)ÚFixMethodattrsTzU
    power< any+ trailer< '.' attr=('im_func' | 'im_self' | 'im_class') > any* >
    c             C   s;   | d d } t  | j } | j t | d | j ƒƒ d  S)NÚattré    Úprefix)ÚMAPÚvalueÚreplacer   r	   )ÚselfZnodeZresultsr   Únew© r   ú3/usr/lib/python3.4/lib2to3/fixes/fix_methodattrs.pyÚ	transform   s    zFixMethodattrs.transformN)Ú__name__Ú
__module__Ú__qualname__ZBM_compatibleZPATTERNr   r   r   r   r   r      s   r   N)Ú__doc__Ú r   Z
fixer_utilr   r
   ZBaseFixr   r   r   r   r   Ú<module>   s   
