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 :  /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 : /lib/python3.10/lib2to3/fixes/__pycache__/fix_isinstance.cpython-310.pyc
o

��bcH�@s2dZddlmZddlmZGdd�dej�ZdS)a,Fixer that cleans up a tuple argument to isinstance after the tokens
in it were fixed.  This is mainly used to remove double occurrences of
tokens as a leftover of the long -> int / unicode -> str conversion.

eg.  isinstance(x, (int, long)) -> isinstance(x, (int, int))
       -> isinstance(x, int)
�)�
fixer_base)�tokenc@s eZdZdZdZdZdd�ZdS)�
FixIsinstanceTz�
    power<
        'isinstance'
        trailer< '(' arglist< any ',' atom< '('
            args=testlist_gexp< any+ >
        ')' > > ')' >
    >
    �cCs�t�}|d}|j}g}t|�}|D]8\}}	|	jtjkr9|	j|vr9|t|�dkr8||djtjkr8t	|�qq|�
|	�|	jtjkrJ|�|	j�q|rX|djtjkrX|d=t|�dkrp|j}
|
j
|d_
|
�|d�dS||dd�<|��dS)N�args�����)�set�children�	enumerate�typer�NAME�value�len�COMMA�next�append�add�parent�prefix�replace�changed)�self�node�results�names_inserted�testlistr�new_args�iterator�idx�arg�atom�r#�3/usr/lib/python3.10/lib2to3/fixes/fix_isinstance.py�	transforms.$�
�zFixIsinstance.transformN)�__name__�
__module__�__qualname__�
BM_compatible�PATTERN�	run_orderr%r#r#r#r$rs
	rN)�__doc__�r�
fixer_utilr�BaseFixrr#r#r#r$�<module>s

Anon7 - 2022
AnonSec Team