\dBTdZddlmZddlmZddlmZGddejZdS)zFixer 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. )pytree)token) fixer_basec|eZdZdZdZejejdZejej dZ ee fZ dZ dS) FixWsCommaTzH any<(not(',') any)+ ',' ((not(',') any)+ ',')* [not(',') any]> ,:c|}d}|jD]H}||jvr)|j}|r d|vrd|_d}4|r|j}|sd|_d}I|S)NF T )clonechildrenSEPSprefixisspace)selfnoderesultsnewcommachildrs +..\python\lib\lib2to3\fixes\fix_ws_comma.py transformzFixWsComma.transformsjjll\  E !!>>##&F(:(:#%EL+"\F!+'*  N) __name__ __module__ __qualname__explicitPATTERNrLeafrCOMMACOLONrrrrrr sdHG FK S ) )E FK S ) )E 5>DrrN)__doc__r rpgen2rrBaseFixrr$rrr(s~#r