Your IP : 52.14.255.122
�
�Q�f* � �j � d Z ddlmZ ddlmZ ddlmZ ddlmZmZm Z G d� dej � Zy) zIFixer for apply().
This converts apply(func, v, k) into (func)(*v, **k).� )�pytree)�token)�
fixer_base)�Call�Comma�parenthesizec � � e Zd ZdZdZd� Zy)�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 }|d }|d }|j d� }|r?|j | j j k( r|j d j
dv ry |r@|j | j j k( r|j d j
dk( ry |j }|j � }|j t j |j fvrN|j |j k7 s*|j d j t j k( rt |� }d|_ |j � }d|_ |�|j � }d|_ t j t j d � |g}|�H|j# t% � t j t j d� |g� d
|d _ t'