î
\á[\„  ã               @   sC   d  Z  d d l m Z d d l m Z Gd d „  d e j ƒ Z d S)z3Fix function attribute names (f.func_x -> f.__x__).é   )Ú
fixer_base)ÚNamec               @   s(   e  Z d  Z d Z d Z d d „  Z d S)ÚFixFuncattrsTzß
    power< any+ trailer< '.' attr=('func_closure' | 'func_doc' | 'func_globals'
                                  | 'func_name' | 'func_defaults' | 'func_code'
                                  | 'func_dict') > any* >
    c             C   s?   | d d } | j  t d | j d d  … d | j ƒƒ d  S)NÚattré    z__%s__é   Úprefix)Úreplacer   Úvaluer   )ÚselfZnodeZresultsr   © r   ú1/usr/lib/python3.4/lib2to3/fixes/fix_funcattrs.pyÚ	transform   s     zFixFuncattrs.transformN)Ú__name__Ú
__module__Ú__qualname__ZBM_compatibleZPATTERNr   r   r   r   r   r   	   s   r   N)Ú__doc__Ú r   Z
fixer_utilr   ZBaseFixr   r   r   r   r   Ú<module>   s   