KŠMa^ã@s[dZddlmZddlmZdddddd iZGd d „d ejƒZd S) z;Fix bound method attributes (method.im_? -> method.__?__). é)Ú fixer_base)ÚNameZim_funcÚ__func__Zim_selfÚ__self__Zim_classz__self__.__class__c@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/python35/lib64/python3.5/lib2to3/fixes/fix_methodattrs.pyÚ transforms zFixMethodattrs.transformN)Ú__name__Ú __module__Ú __qualname__Z BM_compatibleZPATTERNrrrrrrs rN)Ú__doc__ÚrZ fixer_utilrr ZBaseFixrrrrrÚs