
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
U
    ,aB                     @   s>   d Z ddlmZ ddlmZ ddlmZ G d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                   @   s@   e Zd ZdZdZeejdZeej	dZ	ee	fZ
dd ZdS )
FixWsCommaTzH
    any<(not(',') any)+ ',' ((not(',') any)+ ',')* [not(',') any]>
    ,:c                 C   s`   |  }d}|jD ]H}|| jkrB|j}| r<d|kr<d|_d}q|rV|j}|sVd|_d}q|S )NF
 T )ZcloneZchildrenSEPSprefixisspace)selfZnodeZresultsnewZcommaZchildr    r   ?/opt/alt/python38/lib64/python3.8/lib2to3/fixes/fix_ws_comma.py	transform   s    

zFixWsComma.transformN)__name__
__module____qualname__ZexplicitZPATTERNr   ZLeafr   COMMACOLONr   r   r   r   r   r   r      s   r   N)__doc__r	   r   Zpgen2r   r   ZBaseFixr   r   r   r   r   <module>   s   