Your IP : 18.119.116.125
�
�Q�fB � �V � d Z ddlmZ ddlmZ ddlmZ G d� dej � Zy)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� Zy)�
FixWsCommaTzH
any<(not(',') any)+ ',' ((not(',') any)+ ',')* [not(',') any]>
�,�:c �� � |j � }d}|j D ]S }|| j v r*|j }|j � rd|vrd|_ d}�;|r|j }|sd|_ d}�U |S )NF�
� T� )�clone�children�SEPS�prefix�isspace)�self�node�results�new�comma�childr s �A/opt/alt/python312/lib64/python3.12/lib2to3/fixes/fix_ws_comma.py� transformzFixWsComma.transform st � ��j�j�l�����\�\�E��� � �!������>�>�#��F�(:�#%�E�L����"�\�\�F�!�'*����� "� �
� N)�__name__�
__module__�__qualname__�explicit�PATTERNr �Leafr �COMMA�COLONr r � r r r r sJ � ��H��G�
�F�K�K����S�)�E��F�K�K����S�)�E��5�>�D�r r N)�__doc__r r �pgen2r r �BaseFixr r$ r r �<module>r( s'