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

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


��Qc@s_dZddlmZddlmZddlmZmZmZdejfd��YZ	dS(s/Fixer for intern().

intern(s) -> sys.intern(s)i(tpytree(t
fixer_base(tNametAttrttouch_importt	FixInterncBs#eZeZdZdZd�ZRS(tpres�
    power< 'intern'
           trailer< lpar='('
                    ( not(arglist | argument<any '=' any>) obj=any
                      | obj=arglist<(not argument<any '=' any>) any ','> )
                    rpar=')' >
           after=any*
    >
    c		Cs|j}|dj�}|j|jkr:|j�}ntj|j|j�g�}|d}|r�g|D]}|j�^qo}ntj|jttd�td��tj|j	|dj�||dj�g�g|�}|j
|_
tdd|�|S(Ntobjtafterusysuinterntlpartrpar(
tsymstclonettypetarglistRtNodetpowerRRttrailertprefixRtNone(	tselftnodetresultsRRt
newarglistRtntnew((s./sys/lib/python2.7/lib2to3/fixes/fix_intern.pyt	transforms	
"U(t__name__t
__module__tTruet
BM_compatibletordertPATTERNR(((s./sys/lib/python2.7/lib2to3/fixes/fix_intern.pyRs
N(
t__doc__tRRt
fixer_utilRRRtBaseFixR(((s./sys/lib/python2.7/lib2to3/fixes/fix_intern.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.