��
���Lc@sIdZddklZddklZlZdeifd��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(tLParentRParentFixParencBseZdZd�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�}|i|_d|_|id|�|it��dS(Nttargetui(Rtprefixtinsert_childtappend_childR(tselftnodetresultsRtlparen((s-/usr/lib/python2.6/lib2to3/fixes/fix_paren.pyt transform#s
(t__name__t
__module__tPATTERNR(((s-/usr/lib/python2.6/lib2to3/fixes/fix_paren.pyRsN(t__doc__tRt
fixer_utilRRtBaseFixR(((s-/usr/lib/python2.6/lib2to3/fixes/fix_paren.pyt<module>s