Viewing File: /opt/alt/python38/lib64/python3.8/lib2to3/fixes/__pycache__/fix_reduce.cpython-38.opt-1.pyc

U

¡ê,aEã@s2dZddlmZddlmZGdd„dejƒZdS)zqFixer for reduce().

Makes sure reduce() is imported from the functools module if reduce is
used in that module.
é)Ú
fixer_base©Útouch_importc@s eZdZdZdZdZdd„ZdS)Ú	FixReduceTZpreai
    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)NÚ	functoolsÚreducer)ÚselfZnodeZresults©r	ú=/opt/alt/python38/lib64/python3.8/lib2to3/fixes/fix_reduce.pyÚ	transform"szFixReduce.transformN)Ú__name__Ú
__module__Ú__qualname__Z
BM_compatibleÚorderZPATTERNrr	r	r	r
rsrN)Ú__doc__Zlib2to3rZlib2to3.fixer_utilrZBaseFixrr	r	r	r
Ú<module>s
Back to Directory File Manager