Hacked By AnonymousFox

Current Path : /opt/alt/python36/lib64/python3.6/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python36/lib64/python3.6/lib2to3/fixes/__pycache__/fix_apply.cpython-36.pyc

3

� f~	�@sRdZddlmZddlmZddlmZddlmZmZm	Z	Gdd�dej
�ZdS)	zIFixer for apply().

This converts apply(func, v, k) into (func)(*v, **k).�)�pytree)�token)�
fixer_base)�Call�Comma�parenthesizec@seZdZdZdZdd�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	CsF|j}|st�|d}|d}|jd�}|r`|j|jjkr>dS|j|jjkr`|jdjdkr`dS|r�|j|jjkr�|jdjdkr�dS|j}|j	�}|jt
j|jfkr�|j|j
ks�|jdjt
jkr�t|�}d|_|j	�}d|_|dk	r�|j	�}d|_tjt
jd�|g}|dk	�r8|jt�tjt
jd�|g�d	|d_t|||d
�S)
N�func�args�kwds�z**r��*� )�prefix���r)�syms�AssertionError�get�typeZ	star_exprZargumentZchildren�valuerZcloner�NAMEZatomZpower�
DOUBLESTARrrZLeaf�STAR�extendrr)	�selfZnodeZresultsrr	r
rrZ	l_newargs�r�</opt/alt/python36/lib64/python3.6/lib2to3/fixes/fix_apply.py�	transformsB


zFixApply.transformN)�__name__�
__module__�__qualname__Z
BM_compatibleZPATTERNrrrrrrsrN)�__doc__r
rZpgen2rrZ
fixer_utilrrrZBaseFixrrrrr�<module>s


Hacked By AnonymousFox1.0, Coded By AnonymousFox