o
    bcE                     @   s2   d Z ddlmZ ddlmZ G dd dejZdS )zqFixer for reduce().

Makes sure reduce() is imported from the functools module if reduce is
used in that module.
    )
fixer_basetouch_importc                   @   s    e Zd ZdZdZdZdd ZdS )	FixReduceTpreai  
    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)
            ) >
        ')' >
    >
    c                 C   s   t dd| d S )N	functoolsreducer   )selfnoderesults r   //usr/lib/python3.10/lib2to3/fixes/fix_reduce.py	transform"   s   zFixReduce.transformN)__name__
__module____qualname__BM_compatibleorderPATTERNr   r   r   r   r   r      s
    r   N)__doc__lib2to3r   lib2to3.fixer_utilr   BaseFixr   r   r   r   r   <module>   s   