§
Æá¬p^3Yã óP — d Z ddlmZmZ ddlmZmZ G d„ dej ¦ « ZdS )z:
Optional fixer to transform set() calls to set literals.
é )Ú
fixer_baseÚpytree)ÚtokenÚsymsc ó — e Zd ZdZdZdZd„ ZdS )Ú
FixSetLiteralTaj power< 'set' trailer< '('
(atom=atom< '[' (items=listmaker< any ((',' any)* [',']) >
|
single=any) ']' >
|
atom< '(' items=testlist_gexp< any ((',' any)* [',']) > ')' >
)
')' > >
c óè — | d¦ « }|rJt j t j | ¦ « g¦ « }| |¦ « |}n|d }t j t j d¦ « g}|
d„ |j D ¦ « ¦ « | t j t j
d¦ « ¦ « |j j |d _ t j t j |¦ « }|j |_ t# |j ¦ « dk r8|j d }| ¦ « |j |j d _ |S ) NÚsingleÚitemsú{c 3 ó> K — | ]}| ¦ « V — Œd S )N)Úclone)Ú.0Úns úD/opt/alt/python311/lib64/python3.11/lib2to3/fixes/fix_set_literal.pyú