Hacked By AnonymousFox
�
{fc @ sO d Z d d l m Z m Z d d l m Z m Z d e j f d � � YZ d S( s:
Optional fixer to transform set() calls to set literals.
i����( t
fixer_baset pytree( t tokent symst
FixSetLiteralc B s# e Z e Z e Z d Z d � Z RS( sj power< 'set' trailer< '('
(atom=atom< '[' (items=listmaker< any ((',' any)* [',']) >
|
single=any) ']' >
|
atom< '(' items=testlist_gexp< any ((',' any)* [',']) > ')' >
)
')' > >
c C s | j d � } | rI t 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 � d k r| j d } | j � | j | j d _ n | S( Nt singlet itemsu {c s s | ] } | j � Vq d S( N( t clone( t .0t n( ( s5 /usr/lib64/python2.7/lib2to3/fixes/fix_set_literal.pys <genexpr>'