
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
3

  \B                 @   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jejdZejej	dZ	ee	fZ
dd ZdS )
FixWsCommaTzH
    any<(not(',') any)+ ',' ((not(',') any)+ ',')* [not(',') any]>
    ,:c             C   sd   |j  }d}xR|jD ]H}|| jkrD|j}|j r>d|kr>d|_d}q|rX|j}|sXd|_d}qW |S )NF
 T )ZcloneZchildrenSEPSprefixisspace)selfZnodeZresultsnewZcommaZchildr    r   2/usr/lib64/python3.6/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   