Your IP : 3.137.214.16


Current Path : /opt/alt/python311/lib64/python3.11/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/lib2to3/fixes/__pycache__/fix_print.cpython-311.opt-2.pyc

�

c��f���	ddlmZddlmZddlmZddlmZddlmZmZm	Z	m
Z
ejd��ZGd�dej
��Zd	S)
�)�patcomp)�pytree)�token)�
fixer_base)�Name�Call�Comma�Stringz"atom< '(' [atom|STRING|NAME] ')' >c�"�eZdZdZdZd�Zd�ZdS)�FixPrintTzP
              simple_stmt< any* bare='print' any* > | print_stmt
              c	��|�d��}|r9|�ttd��g|j�����dS|jdd�}t
|��dkr"t�|d��rdSdx}x}}|r$|dt��kr|dd�}d}|rM|dtjtj
d��kr$|d���}|d	d�}d
�|D��}|r
d|d_|�|�|�|�1|�|dt!t#|������|�1|�|d
t!t#|������|�|�|d|��ttd��|��}	|j|	_|	S)N�bare�print)�prefix������ z>>�c�6�g|]}|�����S�)�clone)�.0�args  �>/opt/alt/python311/lib64/python3.11/lib2to3/fixes/fix_print.py�
<listcomp>z&FixPrint.transform.<locals>.<listcomp>?s ��.�.�.�#�#�)�)�+�+�.�.�.���sep�end�file)�get�replacerrr�children�len�parend_expr�matchr	r�Leafr�
RIGHTSHIFTr�	add_kwargr
�repr)
�self�node�results�
bare_print�argsrr r!�l_args�n_stmts
          r�	transformzFixPrint.transform%s����[�[��(�(�
��	����t�D��M�M�2�&0�&7� 9� 9� 9�
:�
:�
:��F��}�Q�R�R� ���t�9�9��>�>�k�/�/��Q��8�8�>�
�F�����c�D��	�D��H����'�'�����9�D��C��	�D��G�v�{�5�+;�T�B�B�B�B���7�=�=�?�?�D�����8�D�.�.��.�.�.���	"�!�F�1�I���?�c�o��1A������v�u�f�T�#�Y�Y�.?�.?�@�@�@������v�u�f�T�#�Y�Y�.?�.?�@�@�@������v�v�t�4�4�4��d�7�m�m�V�,�,�����
��
rc�*�d|_tj|jjt|��tjtjd��|f��}|r(|�	t����d|_|�	|��dS)Nr�=r)rr�Node�syms�argumentrr(r�EQUAL�appendr	)r,�l_nodes�s_kwd�n_expr�
n_arguments     rr*zFixPrint.add_kwargMs�����
��[���!3�"&�u�+�+�"(�+�e�k�3�"?�"?�"(�"*�+�+�
��	$��N�N�5�7�7�#�#�#� #�J�����z�"�"�"�"�"rN)�__name__�
__module__�__qualname__�
BM_compatible�PATTERNr3r*rrrrrs?�������M��G�&�&�&�P
#�
#�
#�
#�
#rrN)rrr�pgen2rr�
fixer_utilrrr	r
�compile_patternr&�BaseFixrrrr�<module>rHs���
�������������������������2�2�2�2�2�2�2�2�2�2�2�2�&�g�%�6����
:#�:#�:#�:#�:#�z�!�:#�:#�:#�:#�:#r

?>