File: //opt/alt/python35/lib64/python3.5/lib2to3/fixes/__pycache__/fix_reduce.cpython-35.opt-1.pyc
��YfE  �               @   sC   d  Z  d d l m Z d d l m Z Gd 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)�	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)
            ) >
        ')' >
    >
    c             C   s   t  d d | � d  S)N�	functools�reduce)r   )�selfZnodeZresults� r   �=/opt/alt/python35/lib64/python3.5/lib2to3/fixes/fix_reduce.py�	transform"