Your IP : 18.116.49.143
�
c��f* � �h � d Z ddlmZ ddlmZ ddlmZ ddlmZmZm Z G d� dej
� � ZdS ) zIFixer for apply().
This converts apply(func, v, k) into (func)(*v, **k).� )�pytree)�token)�
fixer_base)�Call�Comma�parenthesizec � � e Zd ZdZdZd� ZdS )�FixApplyTa.
power< 'apply'
trailer<
'('
arglist<
(not argument<NAME '=' any>) func=any ','
(not argument<NAME '=' any>) args=any [','
(not argument<NAME '=' any>) kwds=any] [',']
>
')'
>
>
c � � | j }|sJ �|d }|d }|� d� � }|r+|j | j j k r|j d j dv rd S |r-|j | j j k r|j d j dk rd S |j }|� � � }|j t j |j
fvr?|j |j k s |j d j t j k rt |� � }d|_ |� � � }d|_ |�|� � � }d|_ t j t j d � � |g}|�N|� t% � � t j t j d� � |g� � d
|d _ t'