Files
PowerToys/PythonHome/Lib/lib2to3/fixes/fix_set_literal.pyc

19 lines
1.9 KiB
Plaintext
Raw Normal View History

2014-07-09 18:15:23 +08:00
<03>
<EFBFBD>W`Sc@sOdZddlmZmZddlmZmZdejfd<00><00>YZdS(s:
Optional fixer to transform set() calls to set literals.
i<EFBFBD><EFBFBD><EFBFBD><EFBFBD>(t
fixer_basetpytree(ttokentsymst FixSetLiteralcBs#eZeZeZdZd<00>ZRS(sjpower< 'set' trailer< '('
(atom=atom< '[' (items=listmaker< any ((',' any)* [',']) >
|
single=any) ']' >
|
atom< '(' items=testlist_gexp< any ((',' any)* [',']) > ')' >
)
')' > >
c Cs|jd<00>}|rItjtj|j<00>g<00>}|j|<00>|}n
|d}tjtj d<00>g}|j
d<00>|j D<><00>|j tjtj d<00><00>|jj|d_tjtj|<00>}|j|_t|j <00>dkr|j d}|j<00>|j|j d_n|S( Ntsingletitemsu{css|]}|j<00>VqdS(N(tclone(t.0tn((s&.\Lib\lib2to3\fixes\fix_set_literal.pys <genexpr>'su}i<><69><EFBFBD><EFBFBD>ii(tgetRtNodeRt listmakerRtreplacetLeafRtLBRACEtextendtchildrentappendtRBRACEt next_siblingtprefixt dictsetmakertlentremove( tselftnodetresultsRtfakeRtliteraltmakerR ((s&.\Lib\lib2to3\fixes\fix_set_literal.pyt transforms"  
  
(t__name__t
__module__tTruet BM_compatibletexplicittPATTERNR(((s&.\Lib\lib2to3\fixes\fix_set_literal.pyR s
N( t__doc__tlib2to3RRtlib2to3.fixer_utilRRtBaseFixR(((s&.\Lib\lib2to3\fixes\fix_set_literal.pyt<module>s