î j f^ã@s^dZddlmZddlmZidd6dd6dd 6ZGd d „d ejƒZd S) z;Fix bound method attributes (method.im_? -> method.__?__). é)Ú fixer_base)ÚNameÚ__func__Zim_funcÚ__self__Zim_selfz__self__.__class__Zim_classc@s(eZdZdZdZdd„ZdS)ÚFixMethodattrsTzU power< any+ trailer< '.' attr=('im_func' | 'im_self' | 'im_class') > any* > cCs;|dd}t|j}|jt|d|jƒƒdS)NÚattréÚprefix)ÚMAPÚvalueÚreplacerr )ÚselfZnodeZresultsrÚnew©rúB/opt/alt/python34/lib64/python3.4/lib2to3/fixes/fix_methodattrs.pyÚ transforms zFixMethodattrs.transformN)Ú__name__Ú __module__Ú __qualname__Z BM_compatibleZPATTERNrrrrrrs rN)Ú__doc__ÚrZ fixer_utilrr ZBaseFixrrrrrÚs