Your IP : 3.138.134.247
�
c��fB � �T � d Z ddlmZ ddlmZ ddlmZ G d� dej � � ZdS )z�Fixer 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 Zd ZdZdZ ej ej d� � Z ej ej d� � Z ee fZ
d� ZdS )�
FixWsCommaTzH
any<(not(',') any)+ ',' ((not(',') any)+ ',')* [not(',') any]>
�,�:c �� � |� � � }d}|j D ]H}|| j v r)|j }|� � � rd|vrd|_ d}�4|r|j }|sd|_ d}�I|S )NF�
� T� )�clone�children�SEPS�prefix�isspace)�self�node�results�new�comma�childr s �A/opt/alt/python311/lib64/python3.11/lib2to3/fixes/fix_ws_comma.py� transformzFixWsComma.transform s� � ��j�j�l�l�����\� � �E��� �!�!�����>�>�#�#� &��F�(:�(:�#%�E�L����� +�"�\�F�!� +�'*�������
� N)�__name__�
__module__�__qualname__�explicit�PATTERNr �Leafr �COMMA�COLONr r � r r r r sd � � � � � ��H��G�
�F�K���S�)�)�E��F�K���S�)�)�E��5�>�D�� � � � r r N)�__doc__r r �pgen2r r �BaseFixr r$ r r �<module>r( s~ ��� � � � � � � � � � � � � � � � � � � �� � � � ��#� � � � � r