Your IP : 3.144.98.61
U
i�f� � @ s� d dl mZ d dlmZ d dl mZ d dlmZmZmZm Z m
Z
mZ dd� ZG dd� dej
�Zd d
� Zdd� Zg d
fdd�Zdd� Zd
S )� )�pytree)�token)�
fixer_base)�Assign�Name�Newline�Number� Subscript�symsc C s t | tj�o| jd jtjkS )N� )�
isinstancer �Node�children�typer �STRING)�stmt� r �C/opt/alt/python38/lib64/python3.8/lib2to3/fixes/fix_tuple_params.py�is_docstring s �r c @ s( e Zd ZdZdZdZdd� Zdd� ZdS ) �FixTupleParams� Ta
funcdef< 'def' any parameters< '(' args=any ')' >
['->' any] ':' suite=any+ >
|
lambda=
lambdef< 'lambda' args=vfpdef< '(' inner=any ')' >
':' body=any
>
c s� d|kr�� ||�S g �|d }|d }|d jd jtjkrZd}|d jd j}t� � nd}d}t�tjd�� d� ��fd
d� }|jt j
kr�||� n<|jt jkr�t|j�D ]$\}} | jt j
kr�|| |dkd� q��s�d S �D ]}
|d |
_
q�|}|dk�r
d
�d _n&t|d j| ��r0|�d _|d }�D ]}
|d |
_
�q4�|d j||�<