$21 GRAYBYTE WORDPRESS FILE MANAGER $83

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python34/lib64/python3.4/lib2to3/fixes/__pycache__/

HOME
Current File : /opt/alt/python34/lib64/python3.4/lib2to3/fixes/__pycache__//fix_tuple_params.cpython-34.pyo
�
j f��@s�dZddlmZddlmZddlmZddlmZmZm	Z	m
Z
mZmZdd�Z
Gdd	�d	ej�Zd
d�Zdd
�Zgddd�Zdd�ZdS)a:Fixer for function definitions with tuple parameters.

def func(((a, b), c), d):
    ...

    ->

def func(x, d):
    ((a, b), c) = x
    ...

It will also support lambdas:

    lambda (x, y): x + y -> lambda t: t[0] + t[1]

    # The parens are a syntax error in Python 3
    lambda (x): x + y -> lambda x: x + y
�)�pytree)�token)�
fixer_base)�Assign�Name�Newline�Number�	Subscript�symscCs)t|tj�o(|jdjtjkS)N�)�
isinstancer�Node�children�typer�STRING)�stmt�r�C/opt/alt/python34/lib64/python3.4/lib2to3/fixes/fix_tuple_params.py�is_docstringsrc@s:eZdZdZdZdZdd�Zdd�ZdS)	�FixTupleParams�Ta
              funcdef< 'def' any parameters< '(' args=any ')' >
                       ['->' any] ':' suite=any+ >
              |
              lambda=
              lambdef< 'lambda' args=vfpdef< '(' inner=any ')' >
                       ':' body=any
              >
              cs6d|kr�j||�Sg�|d}|d}|djdjtjkryd}|djdj}t��n!d}d}tjtjd��d	���fd
d�}|jt	j
kr�||�n`|jt	jkr4xKt|j�D]7\}}	|	jt	j
kr�||	d|dk�q�q�Wn�s>dSx�D]}
|d|
_
qEW|}|dkr~d
�d_n1t|dj|�r�|�d_|d}nx�D]}
|d|
_
q�W�|dj||�<x=t|d|t��d�D]}||dj|_qW|dj�dS)N�lambda�suite�argsr�rz; �Fcs�t�j��}|j�}d|_t||j��}|rNd|_n|j|��jtjt	j
|�j�g��dS)Nr� )r�new_name�clone�prefixr�replace�appendrr
r
Zsimple_stmt)Z	tuple_arg�
add_prefix�n�argr)�end�	new_lines�selfrr�handle_tupleCs	
z.FixTupleParams.transform.<locals>.handle_tupler"r)�transform_lambdarrr�INDENT�valuerrZLeafr
ZtfpdefZ
typedargslist�	enumerate�parentrr�range�lenZchanged)r'�node�resultsrr�start�indentr(�ir$�line�afterr)r%r&r'r�	transform.sF


 



(zFixTupleParams.transformc
CsB|d}|d}t|d�}|jtjkr\|j�}d|_|j|�dSt|�}t|�}|j	t
|��}t|dd�}	|j|	j��x�|j�D]}
|
jtjkr�|
j
|kr�dd�||
j
D�}tjtj|	j�g|�}|
j|_|
j|�q�q�WdS)Nr�body�innerrrcSsg|]}|j��qSr)r)�.0�crrr�
<listcomp>�s	z3FixTupleParams.transform_lambda.<locals>.<listcomp>)�
simplify_argsrr�NAMErrr �find_params�map_to_indexr�
tuple_namerZ
post_orderr+rr
r
Zpower)
r'r0r1rr8r9ZparamsZto_indexZtup_nameZ	new_paramr#Z
subscripts�newrrrr)ns(

	
!zFixTupleParams.transform_lambdaN)�__name__�
__module__�__qualname__Z	run_orderZ
BM_compatibleZPATTERNr7r)rrrrrs

@rcCso|jtjtjfkr|S|jtjkr[x#|jtjkrV|jd}q4W|Std|��dS)NrzReceived unexpected node %s)rr
Zvfplistrr>�vfpdefr�RuntimeError)r0rrrr=�sr=cCsP|jtjkr#t|jd�S|jtjkr<|jSdd�|jD�S)NrcSs.g|]$}|jtjkrt|��qSr)rr�COMMAr?)r:r;rrrr<�s	zfind_params.<locals>.<listcomp>)rr
rFr?rrr>r+)r0rrrr?�s
r?NcCs�|dkri}nxht|�D]Z\}}ttt|���g}t|t�rnt||d|�q"||||<q"W|S)N�d)r,r	r�strr�listr@)�
param_listrrIr4�objZtrailerrrrr@�s	r@cCsVg}x@|D]8}t|t�r8|jt|��q
|j|�q
Wdj|�S)N�_)rrKr!rA�join)rL�lrMrrrrA�s
rA)�__doc__rrZpgen2rrZ
fixer_utilrrrrr	r
rZBaseFixrr=r?r@rArrrr�<module>s.l


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
24 May 2024 8.33 AM
root / linksafe
0755
__init__.cpython-34.pyc
0.139 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
__init__.cpython-34.pyo
0.139 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_apply.cpython-34.pyc
1.654 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_apply.cpython-34.pyo
1.625 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_asserts.cpython-34.pyc
1.33 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_asserts.cpython-34.pyo
1.33 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_basestring.cpython-34.pyc
0.671 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_basestring.cpython-34.pyo
0.671 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_buffer.cpython-34.pyc
0.819 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_buffer.cpython-34.pyo
0.819 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_callable.cpython-34.pyc
1.313 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_callable.cpython-34.pyo
1.313 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_dict.cpython-34.pyc
3.594 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_dict.cpython-34.pyo
3.498 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_except.cpython-34.pyc
2.982 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_except.cpython-34.pyo
2.982 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_exec.cpython-34.pyc
1.24 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_exec.cpython-34.pyo
1.211 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_execfile.cpython-34.pyc
1.807 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_execfile.cpython-34.pyo
1.777 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_exitfunc.cpython-34.pyc
2.404 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_exitfunc.cpython-34.pyo
2.404 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_filter.cpython-34.pyc
2.045 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_filter.cpython-34.pyo
2.045 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_funcattrs.cpython-34.pyc
0.982 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_funcattrs.cpython-34.pyo
0.982 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_future.cpython-34.pyc
0.795 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_future.cpython-34.pyo
0.795 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_getcwdu.cpython-34.pyc
0.798 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_getcwdu.cpython-34.pyo
0.798 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_has_key.cpython-34.pyc
3.106 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_has_key.cpython-34.pyo
3.077 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_idioms.cpython-34.pyc
4.055 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_idioms.cpython-34.pyo
3.964 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_import.cpython-34.pyc
2.947 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_import.cpython-34.pyo
2.947 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_imports.cpython-34.pyc
4.67 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_imports.cpython-34.pyo
4.67 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_imports2.cpython-34.pyc
0.558 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_imports2.cpython-34.pyo
0.558 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_input.cpython-34.pyc
0.979 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_input.cpython-34.pyo
0.979 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_intern.cpython-34.pyc
1.024 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_intern.cpython-34.pyo
1.024 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_isinstance.cpython-34.pyc
1.644 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_isinstance.cpython-34.pyo
1.644 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_itertools.cpython-34.pyc
1.585 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_itertools.cpython-34.pyo
1.585 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_itertools_imports.cpython-34.pyc
1.722 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_itertools_imports.cpython-34.pyo
1.681 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_long.cpython-34.pyc
0.721 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_long.cpython-34.pyo
0.721 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_map.cpython-34.pyc
2.776 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_map.cpython-34.pyo
2.776 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_metaclass.cpython-34.pyc
5.842 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_metaclass.cpython-34.pyo
5.796 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_methodattrs.cpython-34.pyc
0.96 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_methodattrs.cpython-34.pyo
0.96 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_ne.cpython-34.pyc
0.826 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_ne.cpython-34.pyo
0.826 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_next.cpython-34.pyc
3.229 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_next.cpython-34.pyo
3.2 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_nonzero.cpython-34.pyc
0.948 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_nonzero.cpython-34.pyo
0.948 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_numliterals.cpython-34.pyc
1.079 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_numliterals.cpython-34.pyo
1.079 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_operator.cpython-34.pyc
4.383 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_operator.cpython-34.pyo
4.383 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_paren.cpython-34.pyc
1.399 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_paren.cpython-34.pyo
1.399 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_print.cpython-34.pyc
2.544 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_print.cpython-34.pyo
2.452 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_raise.cpython-34.pyc
2.385 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_raise.cpython-34.pyo
2.385 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_raw_input.cpython-34.pyc
0.805 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_raw_input.cpython-34.pyo
0.805 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_reduce.cpython-34.pyc
1.13 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_reduce.cpython-34.pyo
1.13 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_reload.cpython-34.pyc
1.024 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_reload.cpython-34.pyo
1.024 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_renames.cpython-34.pyc
2.066 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_renames.cpython-34.pyo
2.066 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_repr.cpython-34.pyc
0.874 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_repr.cpython-34.pyo
0.874 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_set_literal.cpython-34.pyc
1.761 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_set_literal.cpython-34.pyo
1.761 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_standarderror.cpython-34.pyc
0.727 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_standarderror.cpython-34.pyo
0.727 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_sys_exc.cpython-34.pyc
1.455 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_sys_exc.cpython-34.pyo
1.455 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_throw.cpython-34.pyc
1.895 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_throw.cpython-34.pyo
1.895 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_tuple_params.cpython-34.pyc
4.95 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_tuple_params.cpython-34.pyo
4.95 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_types.cpython-34.pyc
1.964 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_types.cpython-34.pyo
1.964 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_unicode.cpython-34.pyc
1.617 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_unicode.cpython-34.pyo
1.617 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_urllib.cpython-34.pyc
6.384 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_urllib.cpython-34.pyo
6.384 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_ws_comma.cpython-34.pyc
1.19 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_ws_comma.cpython-34.pyo
1.19 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_xrange.cpython-34.pyc
2.649 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_xrange.cpython-34.pyo
2.649 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_xreadlines.cpython-34.pyc
1.139 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_xreadlines.cpython-34.pyo
1.139 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_zip.cpython-34.pyc
1.191 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
fix_zip.cpython-34.pyo
1.191 KB
17 Apr 2024 5.10 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF