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

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


�`^c@sCdZddlmZddlmZdejfd��YZdS(sqFixer for reduce().

Makes sure reduce() is imported from the functools module if reduce is
used in that module.
i�(t
fixer_base(ttouch_importt	FixReducecBs#eZeZdZdZd�ZRS(tpresi
    power< 'reduce'
        trailer< '('
            arglist< (
                (not(argument<any '=' any>) any ','
                 not(argument<any '=' any>) any) |
                (not(argument<any '=' any>) any ','
                 not(argument<any '=' any>) any ','
                 not(argument<any '=' any>) any)
            ) >
        ')' >
    >
    cCstdd|�dS(Nu	functoolsureduce(R(tselftnodetresults((s./sys/lib/python2.7/lib2to3/fixes/fix_reduce.pyt	transform"s(t__name__t
__module__tTruet
BM_compatibletordertPATTERNR(((s./sys/lib/python2.7/lib2to3/fixes/fix_reduce.pyRsN(t__doc__tlib2to3Rtlib2to3.fixer_utilRtBaseFixR(((s./sys/lib/python2.7/lib2to3/fixes/fix_reduce.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 [email protected].