ó
ñsºec           @   s^   d  Z  d d l m Z d d l m Z i d d 6d d 6d d	 6Z d
 e j f d „  ƒ  YZ d S(   s;   Fix bound method attributes (method.im_? -> method.__?__).
i   (   t
   fixer_base(   t   Namet   __func__t   im_funct   __self__t   im_selfs   __self__.__class__t   im_classt   FixMethodattrsc           B   s   e  Z e Z d  Z d „  Z RS(   sU   
    power< any+ trailer< '.' attr=('im_func' | 'im_self' | 'im_class') > any* >
    c         C   sA   | d d } t  t | j ƒ } | j t | d | j ƒƒ d  S(   Nt   attri    t   prefix(   t   unicodet   MAPt   valuet   replaceR   R	   (   t   selft   nodet   resultsR   t   new(    (    s3   /usr/lib/python2.7/lib2to3/fixes/fix_methodattrs.pyt	   transform   s    (   t   __name__t
   __module__t   Truet   BM_compatiblet   PATTERNR   (    (    (    s3   /usr/lib/python2.7/lib2to3/fixes/fix_methodattrs.pyR      s   N(   t   __doc__t    R    t
   fixer_utilR   R   t   BaseFixR   (    (    (    s3   /usr/lib/python2.7/lib2to3/fixes/fix_methodattrs.pyt   <module>   s   
