Viewing File: /opt/alt/python311/lib64/python3.11/lib2to3/fixes/__pycache__/fix_set_literal.cpython-311.pyc



fPdZddlmZmZddlmZmZGddejZdS)z:
Optional fixer to transform set() calls to set literals.
)
fixer_basepytree)tokensymsc eZdZdZdZdZdZdS)
FixSetLiteralTajpower< 'set' trailer< '('
                     (atom=atom< '[' (items=listmaker< any ((',' any)* [',']) >
                                |
                                single=any) ']' >
                     |
                     atom< '(' items=testlist_gexp< any ((',' any)* [',']) > ')' >
                     )
                     ')' > >
              c|d}|rJtjtj|g}|||}n|d}tjtj	dg}|
d|jD|tjtj
d|jj|d_tjtj|}|j|_t#|jdkr8|jd}||j|jd_|S)	Nsingleitems{c3>K|]}|VdS)N)clone).0ns  D/opt/alt/python311/lib64/python3.11/lib2to3/fixes/fix_set_literal.py	<genexpr>z*FixSetLiteral.transform.<locals>.<genexpr>'s*99Qqwwyy999999})getrNoder	listmakerrreplaceLeafrLBRACEextendchildrenappendRBRACEnext_siblingprefixdictsetmakerlenremove)	selfnoderesultsr
fakerliteralmakerrs	         r	transformzFixSetLiteral.transforms.X&&	%;t~/?@@DNN4   EEG$E;u|S11299%.999999v{5<55666"/6D-w77{u~!##q!A
HHJJJ()EN2%rN)__name__
__module____qualname__
BM_compatibleexplicitPATTERNr-rrrrs4MHGrrN)	__doc__lib2to3rrlib2to3.fixer_utilrrBaseFixrr4rr<module>r9sx'&&&&&&&********)))))J&)))))r
Back to Directory File Manager