Your IP : 18.221.217.100
o
6��f* � @ sP d dl mZ d dlmZ d dl mZ d dlmZmZmZ G dd� dej �Z
dS )� )�pytree)�token)�
fixer_base)�Call�Comma�parenthesizec @ s e Zd ZdZdZdd� 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 C s* | j }|d }|d }|�d�}|r#|j| j jkr#|jd jdv r#d S |r6|j| j jkr6|jd jdkr6d S |j}|�� }|jtj |j
fvrY|j|jksU|jd jtjkrYt
|�}d|_|�� }d|_|d urn|�� }d|_t�tjd �|g}|d ur�|�t� t�tjd�|g� d
|d _t|||d�S )N�func�args�kwds� > �*�**r ���� r
� )�prefix)�syms�get�typeZargument�children�valuer Zcloner �NAMEZatomZpower�
DOUBLESTARr r ZLeaf�STAR�extendr r ) �selfZnodeZresultsr r r
r r Z l_newargs� r �>/opt/alt/python310/lib64/python3.10/lib2to3/fixes/fix_apply.py� transform s>