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

28 lines
1.5 KiB
Plaintext
Raw Normal View History

2014-07-09 18:15:23 +08:00
<03>
<EFBFBD>W`Sc@sIdZddlmZddlmZmZdejfd<00><00>YZdS(suFixer that addes parentheses where they are required
This converts ``[x for x in 1, 2]`` to ``[x for x in (1, 2)]``.i(t
fixer_base(tLParentRParentFixParencBseZeZdZd<00>ZRS(s
atom< ('[' | '(')
(listmaker< any
comp_for<
'for' NAME 'in'
target=testlist_safe< any (',' any)+ [',']
>
[any]
>
>
|
testlist_gexp< any
comp_for<
'for' NAME 'in'
target=testlist_safe< any (',' any)+ [',']
>
[any]
>
>)
(']' | ')') >
cCsL|d}t<00>}|j|_d|_|jd|<00>|jt<00><00>dS(Nttargetui(Rtprefixt insert_childt append_childR(tselftnodetresultsRtlparen((s .\Lib\lib2to3\fixes\fix_paren.pyt transform%s 
   (t__name__t
__module__tTruet BM_compatibletPATTERNR (((s .\Lib\lib2to3\fixes\fix_paren.pyR sN(t__doc__tRt
fixer_utilRRtBaseFixR(((s .\Lib\lib2to3\fixes\fix_paren.pyt<module>s