ž zyMaBc@sSdZddlmZddlmZddlmZGdd„dejƒZdS(uİFixer that changes 'a ,b' into 'a, b'. This also changes '{a :b}' into '{a: b}', but does not touch other uses of colons. It does not touch other uses of whitespace. i(upytree(utoken(u fixer_basecBsb|EeZdZdZdZejej dƒZ ejej dƒZ e e fZ dd„Z dS(u FixWsCommauH any<(not(',') any)+ ',' ((not(',') any)+ ',')* [not(',') any]> u,u:cCs™|jƒ}d}x€|jD]u}||jkrg|j}|jƒr^d|kr^d|_nd}q|r‹|j}|s‹d|_q‹nd}qW|S(Nu uu FT(ucloneuFalseuchildrenuSEPSuprefixuisspaceuTrue(uselfunodeuresultsunewucommauchilduprefix((u?/opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_ws_comma.pyu transforms      uFixWsComma.transformNT( u__name__u __module__u __qualname__uTrueuexplicituPATTERNupytreeuLeafutokenuCOMMAuCOLONuSEPSu transform(u __locals__((u?/opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_ws_comma.pyu FixWsComma s  u FixWsCommaN(u__doc__uupytreeupgen2utokenu fixer_baseuBaseFixu FixWsComma(((u?/opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_ws_comma.pyus