| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Python312/Lib/lib2to3/fixes/__pycache__/ |
Upload File : |
�
���gi � �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 �/C:\Python312\\Lib\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'