MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 216.73.216.126
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/lib64/python2.7/lib2to3/fixes/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/lib64/python2.7/lib2to3/fixes/fix_print.pyo
�
p��fc@s�dZddlmZddlmZddlmZddlmZddlmZm	Z	m
Z
mZmZej
d�Zdejfd	��YZd
S(sFixer for print.

Change:
    'print'          into 'print()'
    'print ...'      into 'print(...)'
    'print ... ,'    into 'print(..., end=" ")'
    'print >>x, ...' into 'print(..., file=x)'

No changes are applied if print_function is imported from __future__

i(tpatcomp(tpytree(ttoken(t
fixer_base(tNametCalltCommatStringtis_tuples"atom< '(' [atom|STRING|NAME] ')' >tFixPrintcBs&eZeZdZd�Zd�ZRS(sP
              simple_stmt< any* bare='print' any* > | print_stmt
              cCs�|jd�}|r>|jttd�gd|j��dS|jd}t|�dkrttj|d�rtdSd}}}|r�|dt
�kr�|d }d}n|r�|dtjt
jd�kr�|dj�}|d	}ng|D]}|j�^q�}	|	r%d
|	d_n|dk	sI|dk	sI|dk	r�|dk	rw|j|	dtt|���n|dk	r�|j|	dtt|���n|dk	r�|j|	d
|�q�nttd�|	�}
|j|
_|
S(Ntbareuprinttprefixiii����t u>>iuusepuendufile(tgettreplaceRRRtchildrentlentparend_exprtmatchtNoneRRtLeafRt
RIGHTSHIFTtclonet	add_kwargRtrepr(tselftnodetresultst
bare_printtargstseptendtfiletargtl_argstn_stmt((s//usr/lib64/python2.7/lib2to3/fixes/fix_print.pyt	transform%s8

%
	%
$""cCsrd|_tj|jjt|�tjtjd�|f�}|ra|j	t
��d|_n|j	|�dS(Nuu=u (RRtNodetsymstargumentRRRtEQUALtappendR(Rtl_nodests_kwdtn_exprt
n_argument((s//usr/lib64/python2.7/lib2to3/fixes/fix_print.pyRMs		(t__name__t
__module__tTruet
BM_compatibletPATTERNR$R(((s//usr/lib64/python2.7/lib2to3/fixes/fix_print.pyR	s	(N(t__doc__tRRtpgen2RRt
fixer_utilRRRRRtcompile_patternRtBaseFixR	(((s//usr/lib64/python2.7/lib2to3/fixes/fix_print.pyt<module>s(	

MMCT - 2023