| Server IP : 162.19.112.25 / Your IP : 216.73.216.88 Web Server : LiteSpeed System : Linux qamar.tasjeel.ae 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64 User : archiart ( 1428) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python35/lib64/python3.5/lib2to3/fixes/__pycache__/ |
Upload File : |
�qcB � @ sS d Z d d l m Z d d l m Z d d l m Z Gd d � d e j � Z d S)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 @ 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� )ZcloneZchildren�SEPS�prefix�isspace)�selfZnodeZresults�newZcommaZchildr � r �?/opt/alt/python35/lib64/python3.5/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)�__doc__r r Zpgen2r r ZBaseFixr r r r r �<module> s