
mYB                 @   sM   d  d l  m Z d  d l m Z d  d l  m Z Gd d   d e j  Z d S)   )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   s   | j    } d } xw | j D]l } | |  j k rd | j } | j   r[ d | k r[ d | _ d } q | r | j } | s d | _ d } q W| S)NF
 T )ZcloneZchildrenSEPSprefixisspace)selfZnoderesultsnewZcommaZchildr    r   M/build/mts/release/bora-5583004/publish/lin64/lib64/python3.5/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)r	   r   Zpgen2r   r   ZBaseFixr   r   r   r   r   <module>   s   