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