
    dafB                     V    d Z ddlmZ ddlmZ ddlmZ  G d dej                        Zy)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                       e Zd ZdZdZ ej                  ej                  d      Z ej                  ej                  d      Z	ee	fZ
d Zy)
FixWsCommaTzH
    any<(not(',') any)+ ',' ((not(',') any)+ ',')* [not(',') any]>
    ,:c                     |j                         }d}|j                  D ]S  }|| j                  v r*|j                  }|j	                         rd|vrd|_        d};|r|j                  }|sd|_        d}U |S )NF
 T )clonechildrenSEPSprefixisspace)selfnoderesultsnewcommachildr   s          5/root/Python-3.12.4/Lib/lib2to3/fixes/fix_ws_comma.py	transformzFixWsComma.transform   sy    jjl\\ 	E		!>>#F(:#%EL"\\F!'*	 
    N)__name__
__module____qualname__explicitPATTERNr   Leafr   COMMACOLONr   r    r   r   r   r      sJ    HG FKKS)EFKKS)E5>Dr   r   N)__doc__r   r   pgen2r   r   BaseFixr   r$   r   r   <module>r(      s'      ## r   