HEX
Server: Apache
System: Linux msm5694.mjhst.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: camjab_ssh (1000)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: //lib64/python2.7/lib2to3/fixes/fix_set_literal.pyo
ó
áû²_c@sOdZddlmZmZddlmZmZdejfd„ƒYZdS(s:
Optional fixer to transform set() calls to set literals.
iÿÿÿÿ(t
fixer_basetpytree(ttokentsymst
FixSetLiteralcBs#eZeZeZdZd„ZRS(sjpower< 'set' trailer< '('
                     (atom=atom< '[' (items=listmaker< any ((',' any)* [',']) >
                                |
                                single=any) ']' >
                     |
                     atom< '(' items=testlist_gexp< any ((',' any)* [',']) > ')' >
                     )
                     ')' > >
              c	Cs|jdƒ}|rItjtj|jƒgƒ}|j|ƒ|}n
|d}tjtj	dƒg}|j
d„|jDƒƒ|jtjtj
dƒƒ|jj|d_tjtj|ƒ}|j|_t|jƒdkr|jd}|jƒ|j|jd_n|S(	Ntsingletitemsu{css|]}|jƒVqdS(N(tclone(t.0tn((s5/usr/lib64/python2.7/lib2to3/fixes/fix_set_literal.pys	<genexpr>'su}iÿÿÿÿii(tgetRtNodeRt	listmakerRtreplacetLeafRtLBRACEtextendtchildrentappendtRBRACEtnext_siblingtprefixtdictsetmakertlentremove(	tselftnodetresultsRtfakeRtliteraltmakerR	((s5/usr/lib64/python2.7/lib2to3/fixes/fix_set_literal.pyt	transforms"
	


(t__name__t
__module__tTruet
BM_compatibletexplicittPATTERNR(((s5/usr/lib64/python2.7/lib2to3/fixes/fix_set_literal.pyRs
N(	t__doc__tlib2to3RRtlib2to3.fixer_utilRRtBaseFixR(((s5/usr/lib64/python2.7/lib2to3/fixes/fix_set_literal.pyt<module>s