__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
o

��bc�@sNdZddlmZddlmZmZmZmZmZm	Z	dZ
dZGdd�dej�Z
dS)	a�Adjust some old Python 2 idioms to their modern counterparts.

* Change some type comparisons to isinstance() calls:
    type(x) == T -> isinstance(x, T)
    type(x) is T -> isinstance(x, T)
    type(x) != T -> not isinstance(x, T)
    type(x) is not T -> not isinstance(x, T)

* Change "while 1:" into "while True:".

* Change both

    v = list(EXPR)
    v.sort()
    foo(v)

and the more general

    v = EXPR
    v.sort()
    foo(v)

into

    v = sorted(EXPR)
    foo(v)
�)�
fixer_base)�Call�Comma�Name�Node�	BlankLine�symsz0(n='!=' | '==' | 'is' | n=comp_op< 'is' 'not' >)z(power< 'type' trailer< '(' x=any ')' > >csPeZdZdZdeeeefZ�fdd�Zdd�Zdd�Z	d	d
�Z
dd�Z�ZS)
�	FixIdiomsTa�
        isinstance=comparison< %s %s T=any >
        |
        isinstance=comparison< T=any %s %s >
        |
        while_stmt< 'while' while='1' ':' any+ >
        |
        sorted=any<
            any*
            simple_stmt<
              expr_stmt< id1=any '='
                         power< list='list' trailer< '(' (not arglist<any+>) any ')' > >
              >
              '\n'
            >
            sort=
            simple_stmt<
              power< id2=any
                     trailer< '.' 'sort' > trailer< '(' ')' >
              >
              '\n'
            >
            next=any*
        >
        |
        sorted=any<
            any*
            simple_stmt< expr_stmt< id1=any '=' expr=any > '\n' >
            sort=
            simple_stmt<
              power< id2=any
                     trailer< '.' 'sort' > trailer< '(' ')' >
              >
              '\n'
            >
            next=any*
        >
    cs8tt|��|�}|rd|vr|d|dkr|SdS|S)N�sorted�id1�id2)�superr	�match)�self�node�r��	__class__��//usr/lib/python3.10/lib2to3/fixes/fix_idioms.pyrOszFixIdioms.matchcCsDd|vr
|�||�Sd|vr|�||�Sd|vr|�||�Std��)N�
isinstance�whiler
z
Invalid match)�transform_isinstance�transform_while�transform_sort�RuntimeError)rr�resultsrrr�	transformZszFixIdioms.transformcCsh|d��}|d��}d|_d|_ttd�|t�|g�}d|vr.d|_ttjtd�|g�}|j|_|S)N�x�T�� r�n�not)�clone�prefixrrrrr�not_test)rrrrr�testrrrrdszFixIdioms.transform_isinstancecCs |d}|�td|jd��dS)Nr�True�r%)�replacerr%)rrr�onerrrrpszFixIdioms.transform_whilecCs|d}|d}|�d�}|�d�}|r|�td|jd��n|r7|��}d|_|�ttd�|g|jd��ntd��|��|j}d	|vr�|r^|�d	�d
|d
jf}	d	�	|	�|d
_dS|j
scJ�|jdusjJ�t�}
|j
�
|
�|j|
uszJ�|�d	�d
|
_dSdS)N�sort�next�list�exprr
r)r zshould not have reached here�
�)�getr*rr%r$rr�remove�
rpartition�join�parent�next_siblingr�append_child)rrr�	sort_stmt�	next_stmt�	list_call�simple_expr�new�btwn�prefix_lines�end_linerrrrts4


�
�zFixIdioms.transform_sort)
�__name__�
__module__�__qualname__�explicit�TYPE�CMP�PATTERNrrrrr�
__classcell__rrrrr	%s
%�'
r	N)�__doc__r r�
fixer_utilrrrrrrrFrE�BaseFixr	rrrr�<module>s 

Filemanager

Name Type Size Permission Actions
__init__.cpython-310.pyc File 138 B 0644
fix_apply.cpython-310.pyc File 1.61 KB 0644
fix_asserts.cpython-310.pyc File 1.25 KB 0644
fix_basestring.cpython-310.pyc File 661 B 0644
fix_buffer.cpython-310.pyc File 806 B 0644
fix_dict.cpython-310.pyc File 3.21 KB 0644
fix_except.cpython-310.pyc File 2.71 KB 0644
fix_exec.cpython-310.pyc File 1.1 KB 0644
fix_execfile.cpython-310.pyc File 1.64 KB 0644
fix_exitfunc.cpython-310.pyc File 2.25 KB 0644
fix_filter.cpython-310.pyc File 2.38 KB 0644
fix_funcattrs.cpython-310.pyc File 974 B 0644
fix_future.cpython-310.pyc File 782 B 0644
fix_getcwdu.cpython-310.pyc File 786 B 0644
fix_has_key.cpython-310.pyc File 2.81 KB 0644
fix_idioms.cpython-310.pyc File 3.81 KB 0644
fix_import.cpython-310.pyc File 2.75 KB 0644
fix_imports.cpython-310.pyc File 4.52 KB 0644
fix_imports2.cpython-310.pyc File 544 B 0644
fix_input.cpython-310.pyc File 948 B 0644
fix_intern.cpython-310.pyc File 1.1 KB 0644
fix_isinstance.cpython-310.pyc File 1.52 KB 0644
fix_itertools.cpython-310.pyc File 1.51 KB 0644
fix_itertools_imports.cpython-310.pyc File 1.53 KB 0644
fix_long.cpython-310.pyc File 709 B 0644
fix_map.cpython-310.pyc File 3 KB 0644
fix_metaclass.cpython-310.pyc File 5.28 KB 0644
fix_methodattrs.cpython-310.pyc File 936 B 0644
fix_ne.cpython-310.pyc File 809 B 0644
fix_next.cpython-310.pyc File 3 KB 0644
fix_nonzero.cpython-310.pyc File 921 B 0644
fix_numliterals.cpython-310.pyc File 1021 B 0644
fix_operator.cpython-310.pyc File 4.05 KB 0644
fix_paren.cpython-310.pyc File 1.35 KB 0644
fix_print.cpython-310.pyc File 2.25 KB 0644
fix_raise.cpython-310.pyc File 2.2 KB 0644
fix_raw_input.cpython-310.pyc File 793 B 0644
fix_reduce.cpython-310.pyc File 1.1 KB 0644
fix_reload.cpython-310.pyc File 1.12 KB 0644
fix_renames.cpython-310.pyc File 1.98 KB 0644
fix_repr.cpython-310.pyc File 843 B 0644
fix_set_literal.cpython-310.pyc File 1.64 KB 0644
fix_standarderror.cpython-310.pyc File 718 B 0644
fix_sys_exc.cpython-310.pyc File 1.38 KB 0644
fix_throw.cpython-310.pyc File 1.76 KB 0644
fix_tuple_params.cpython-310.pyc File 4.48 KB 0644
fix_types.cpython-310.pyc File 1.9 KB 0644
fix_unicode.cpython-310.pyc File 1.52 KB 0644
fix_urllib.cpython-310.pyc File 5.74 KB 0644
fix_ws_comma.cpython-310.pyc File 1.09 KB 0644
fix_xrange.cpython-310.pyc File 2.47 KB 0644
fix_xreadlines.cpython-310.pyc File 1.09 KB 0644
fix_zip.cpython-310.pyc File 1.54 KB 0644
Filemanager