%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/opt/alt/python27/lib/python2.7/site-packages/libfuturize/fixes/
Upload File :
Create Path :
Current File : //proc/self/root/opt/alt/python27/lib/python2.7/site-packages/libfuturize/fixes/fix_print.pyo

�
�A�[c@s�dZddlmZmZmZddlmZddlmZm	Z	m
Z
mZejd�Z
dejfd��YZdS(	s,Fixer for print.

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

No changes are applied if print_function is imported from __future__

i����(tpatcomptpytreet
fixer_base(ttoken(tNametCalltCommatStrings8atom< '(' [arith_expr|atom|power|term|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(tgettreplaceRRR
tchildrentlentparend_exprtmatchtNoneRRtLeafRt
RIGHTSHIFTtclonet	add_kwargRtrepr(tselftnodetresultst
bare_printtargstseptendtfiletargtl_argstn_stmt((sL/opt/alt/python27/lib/python2.7/site-packages/libfuturize/fixes/fix_print.pyt	transform$s8

%
	%
$""cCsrd|_tj|jjt|�tjtjd�|f�}|ra|j	t
��d|_n|j	|�dS(Nuu=u (R
RtNodetsymstargumentRRRtEQUALtappendR(Rtl_nodests_kwdtn_exprt
n_argument((sL/opt/alt/python27/lib/python2.7/site-packages/libfuturize/fixes/fix_print.pyRTs		(t__name__t
__module__tTruet
BM_compatibletPATTERNR#R(((sL/opt/alt/python27/lib/python2.7/site-packages/libfuturize/fixes/fix_print.pyRs	0N(t__doc__tlib2to3RRRt
lib2to3.pgen2Rtlib2to3.fixer_utilRRRRtcompile_patternRtBaseFixR(((sL/opt/alt/python27/lib/python2.7/site-packages/libfuturize/fixes/fix_print.pyt<module>s"	

Zerion Mini Shell 1.0