o !QçdBã@s>dZddlmZddlmZddlmZGdd„dejƒZdS)z©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. é)Úpytree)Útoken)Ú fixer_basec@s@eZdZdZdZe ejd¡Ze ej d¡Z ee fZ dd„Z dS)Ú FixWsCommaTzH any<(not(',') any)+ ',' ((not(',') any)+ ',')* [not(',') any]> ú,ú:cCs`| ¡}d}|jD]$}||jvr!|j}| ¡rd|vrd|_d}q |r+|j}|s+d|_d}q |S)NFÚ ÚTú )ZcloneÚchildrenÚSEPSÚprefixÚisspace)ÚselfZnodeZresultsÚnewZcommaÚchildr ©rúA/opt/alt/python310/lib64/python3.10/lib2to3/fixes/fix_ws_comma.pyÚ transforms  zFixWsComma.transformN) Ú__name__Ú __module__Ú __qualname__ZexplicitZPATTERNrZLeafrÚCOMMAÚCOLONr rrrrrr s rN)Ú__doc__r rZpgen2rrZBaseFixrrrrrÚs