{|j R d Z ddlmZmZ ddlmZmZ G d dej Zy)z:
Optional fixer to transform set() calls to set literals.
)
fixer_basepytree)tokensymsc e Zd ZdZdZdZd Zy)
FixSetLiteralTaj power< 'set' trailer< '('
(atom=atom< '[' (items=listmaker< any ((',' any)* [',']) >
|
single=any) ']' >
|
atom< '(' items=testlist_gexp< any ((',' any)* [',']) > ')' >
)
')' > >
c |j d }|rGt j t j |j g }|j
| |}n|d }t j t j d g}|j d |j D |j t j t j d |j j |d _ t j t j | }|j |_ t# |j dk( r=|j d }|j% |j |j d _ |S ) Nsingleitems{c 3 <