Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/lib2to3/fixes/
Upload File :
Current File : //usr/lib/python2.7/lib2to3/fixes/fix_reduce.pyc

ó
—|_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./usr/lib/python2.7/lib2to3/fixes/fix_reduce.pyt	transform"s(t__name__t
__module__tTruet
BM_compatibletordertPATTERNR(((s./usr/lib/python2.7/lib2to3/fixes/fix_reduce.pyRsN(t__doc__tlib2to3Rtlib2to3.fixer_utilRtBaseFixR(((s./usr/lib/python2.7/lib2to3/fixes/fix_reduce.pyt<module>s