File: //lib64/python3.9/lib2to3/fixes/__pycache__/fix_set_literal.cpython-39.pyc
a
    �DOg�  �                   @   s:   d Z ddlmZmZ ddlmZmZ G dd� dej�ZdS )z:
Optional fixer to transform set() calls to set literals.
�    )�
fixer_base�pytree)�token�symsc                   @   s    e Zd ZdZdZdZdd� ZdS )�
FixSetLiteralTaj  power< 'set' trailer< '('
                     (atom=atom< '[' (items=listmaker< any ((',' any)* [',']) >
                                |
                                single=any) ']' >
                     |
                     atom< '(' items=testlist_gexp< any ((',' any)* [',']) > ')' >
                     )
                     ')' > >
              c           	      C   s�   |� d�}|r2t�tj|�� g�}|�|� |}n|d }t�tj	d�g}|�
dd� |jD �� |�t�tj
d�� |jj|d _t�tj|�}|j|_t|j�dkr�|jd	 }|��  |j|jd _|S )
N�single�items�{c                 s   s   | ]}|� � V  qd S )N)�clone)�.0�n� r
   �5/usr/lib64/python3.9/lib2to3/fixes/fix_set_literal.py�	<genexpr>'