관리-도구
편집 파일: fix_ws_comma.cpython-37.opt-2.pyc
B YI~dB � @ s: d dl mZ d dlmZ d dl mZ G dd� dej�ZdS )� )�pytree)�token)� fixer_basec @ s@ e Zd ZdZdZe�ejd�Ze�ej d�Z ee fZ dd� ZdS )� FixWsCommaTzH any<(not(',') any)+ ',' ((not(',') any)+ ',')* [not(',') any]> �,�:c C sd |� � }d}xR|jD ]H}|| jkrD|j}|�� r>d|kr>d|_d}q|rX|j}|sXd|_d}qW |S )NF� � T� )ZcloneZchildren�SEPS�prefix�isspace)�selfZnode�results�newZcommaZchildr � r �?/opt/alt/python37/lib64/python3.7/lib2to3/fixes/fix_ws_comma.py� transform s zFixWsComma.transformN)�__name__� __module__�__qualname__ZexplicitZPATTERNr ZLeafr �COMMA�COLONr r r r r r r s r N)r r Zpgen2r r ZBaseFixr r r r r �<module> s