AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3.10/lib2to3/fixes/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /usr/lib/python3.10/lib2to3/fixes/__pycache__/fix_except.cpython-310.pyc
o

��bc
�@sfdZddlmZddlmZddlmZddlmZmZm	Z	m
Z
mZmZdd�Z
Gdd	�d	ej�Zd
S)a�Fixer for except statements with named exceptions.

The following cases will be converted:

- "except E, T:" where T is a name:

    except E as T:

- "except E, T:" where T is not a name, tuple or list:

        except E as t:
            T = t

    This is done because the target of an "except" clause must be a
    name.

- "except E, T:" where T is a tuple or list literal:

        except E as t:
            T = t.args
�)�pytree)�token)�
fixer_base)�Assign�Attr�Name�is_tuple�is_list�symsccsF�t|�D]\}}|jtjkr |jdjdkr |||dfVqdS)N��exceptr)�	enumerate�typer
�
except_clause�children�value)�nodes�i�n�r�//usr/lib/python3.10/lib2to3/fixes/fix_except.py�find_exceptss���rc@seZdZdZdZdd�ZdS)�	FixExceptTa1
    try_stmt< 'try' ':' (simple_stmt | suite)
                  cleanup=(except_clause ':' (simple_stmt | suite))+
                  tail=(['except' ':' (simple_stmt | suite)]
                        ['else' ':' (simple_stmt | suite)]
                        ['finally' ':' (simple_stmt | suite)]) >
    cCsr|j}dd�|dD�}dd�|dD�}t|�D]�\}}t|j�dkr�|jdd�\}}	}
|	�tdd	d
��|
jtjkr�t|�	�d	d
�}|
�
�}d|_|
�|�|�
�}|j}
t|
�D]\}}t
|tj�rhnq\t|
�sqt|
�r|t|t|td���}nt||�}t|
d|��D]}|�d
|�q�|�||�q|
jdkr�d	|
_qdd�|jdd�D�||}t�|j|�S)NcS�g|]}|���qSr��clone)�.0rrrr�
<listcomp>2�z'FixExcept.transform.<locals>.<listcomp>�tailcSrrr)r�chrrrr4r�cleanup���as� )�prefix��argsrcSrrr)r�crrrr\r�)r
r�lenr�replacerrr�NAME�new_namerr&r
�
isinstancer�Noderr	rr�reversed�insert_child)�self�node�resultsr
r�try_cleanupr�e_suite�E�comma�N�new_N�target�suite_stmtsr�stmt�assign�childrrrr�	transform/s:
�

� zFixExcept.transformN)�__name__�
__module__�__qualname__�
BM_compatible�PATTERNrArrrrr$srN)�__doc__r'r�pgen2rr�
fixer_utilrrrrr	r
r�BaseFixrrrrr�<module>s 

Anon7 - 2022
AnonSec Team