관리-도구
편집 파일: fix_apply.cpython-36.opt-2.pyc
3 ��2a~ � @ sN 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 }|jd�}|rX|j| j jkr6d S |j| j jkrX|jd jdkrXd S |r~|j| j jkr~|jd jdkr~d S |j}|j� }|jt j |jfkr�|j|jks�|jd jt j kr�t|�}d|_|j� }d|_|d k r�|j� }d|_tjt jd�|g}|d k �r0|jt� tjt j d�|g� d |d _t|||d �S ) N�func�args�kwds� z**r � �*� )�prefix���r )�syms�get�typeZ star_expr�argumentZchildren�valuer Zcloner �NAMEZatomZpower� DOUBLESTARr r ZLeaf�STAR�extendr r ) �selfZnode�resultsr r r r r Z l_newargs� r �./opt/alt/python36/lib64/python3.6/fix_apply.py� transform s@ zFixApply.transformN)�__name__� __module__�__qualname__Z BM_compatibleZPATTERNr r r r r r s r N)r r Zpgen2r r Z fixer_utilr r r ZBaseFixr r r r r �<module> s