Plan 9 from Bell Labs’s /usr/web/sources/contrib/stallion/root/sys/lib/python2.7/lib2to3/fixes/fix_methodattrs.pyc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


�`^c@s^dZddlmZddlmZidd6dd6dd	6Zd
ejfd��YZdS(
s;Fix bound method attributes (method.im_? -> method.__?__).
i(t
fixer_base(tNamet__func__tim_funct__self__tim_selfs__self__.__class__tim_classtFixMethodattrscBseZeZdZd�ZRS(sU
    power< any+ trailer< '.' attr=('im_func' | 'im_self' | 'im_class') > any* >
    cCsA|dd}tt|j�}|jt|d|j��dS(Ntattritprefix(tunicodetMAPtvaluetreplaceRR	(tselftnodetresultsRtnew((s3/sys/lib/python2.7/lib2to3/fixes/fix_methodattrs.pyt	transforms(t__name__t
__module__tTruet
BM_compatibletPATTERNR(((s3/sys/lib/python2.7/lib2to3/fixes/fix_methodattrs.pyRsN(t__doc__tRt
fixer_utilRRtBaseFixR(((s3/sys/lib/python2.7/lib2to3/fixes/fix_methodattrs.pyt<module>s


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.