%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python2.7/lib2to3/fixes/
Upload File :
Create Path :
Current File : //usr/local/lib/python2.7/lib2to3/fixes/fix_print.pyo

ó
Pêáac@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((s3/usr/local/lib/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((s3/usr/local/lib/python2.7/lib2to3/fixes/fix_print.pyRMs		(t__name__t
__module__tTruet
BM_compatibletPATTERNR$R(((s3/usr/local/lib/python2.7/lib2to3/fixes/fix_print.pyR	s	(N(t__doc__tRRtpgen2RRt
fixer_utilRRRRRtcompile_patternRtBaseFixR	(((s3/usr/local/lib/python2.7/lib2to3/fixes/fix_print.pyt<module>s(	

Zerion Mini Shell 1.0