__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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:

aptanhua@216.73.216.200: ~ $
o

0�i �@svdZddlmZddlmZddlmZmZmZdd�Z	dd�Z
d	d
�Zdd�Zd
d�Z
dd�ZGdd�dej�ZdS)a�Fixer for __metaclass__ = X -> (metaclass=X) methods.

   The various forms of classef (inherits nothing, inherits once, inherits
   many) don't parse the same in the CST so we look at ALL classes for
   a __metaclass__ and if we find one normalize the inherits to all be
   an arglist.

   For one-liner classes ('class X: pass') there is no indent/dedent so
   we normalize those into having a suite.

   Moving the __metaclass__ into the classdef can also cause the class
   body to be empty so there is some special casing for that as well.

   This fixer also tries very hard to keep original indenting and spacing
   in all those corner cases.

�)�
fixer_base)�token)�syms�Node�LeafcCsz|jD]7}|jtjkrt|�S|jtjkr:|jr:|jd}|jtjkr:|jr:|jd}t|t�r:|j	dkr:dSqdS)z� we have to check the cls_node without changing it.
        There are two possibilities:
          1)  clsdef => suite => simple_stmt => expr_stmt => Leaf('__meta')
          2)  clsdef => simple_stmt => expr_stmt => Leaf('__meta')
    ��
__metaclass__TF)
�children�typer�suite�
has_metaclass�simple_stmt�	expr_stmt�
isinstancer�value)�parent�node�	expr_nodeZ	left_side�r�B/opt/alt/python310/lib64/python3.10/lib2to3/fixes/fix_metaclass.pyrs




�rcCs�|jD]}|jtjkrdSqt|j�D]\}}|jtjkr nqtd��ttjg�}|j|dd�rO|j|d}|�	|�
��|��|j|dd�s4|�	|�|}dS)zf one-line classes don't get a suite in the parse tree so we add
        one to normalize the tree
    NzNo class suite and no ':'!�)r	r
rr�	enumerater�COLON�
ValueErrorr�append_child�clone�remove)�cls_noder�ir�	move_noderrr�fixup_parse_tree-s"
���
r c
Cs�t|j�D]\}}|jtjkrnqdS|��ttjg�}ttj	|g�}|j|d�rC|j|}|�
|���|��|j|d�s,|�||�|jdjd}|jdjd}	|	j
|_
dS)z� if there is a semi-colon all the parts count as part of the same
        simple_stmt.  We just want the __metaclass__ part so we move
        everything after the semi-colon into its own simple_stmt node
    Nr)rr	r
r�SEMIrrrrr
rr�insert_child�prefix)
rrZ	stmt_nodeZsemi_indrZnew_exprZnew_stmtrZ	new_leaf1Z	old_leaf1rrr�fixup_simple_stmtGs"�
�r$cCs2|jr|jdjtjkr|jd��dSdSdS)N���)r	r
r�NEWLINEr)rrrr�remove_trailing_newline_s�r'ccs��|jD]
}|jtjkrnqtd��tt|j��D]:\}}|jtjkrT|jrT|jd}|jtjkrT|jrT|jd}t	|t
�rT|jdkrTt|||�t
|�|||fVqdS)NzNo class suite!rr)r	r
rrr�listrr
rrrrr$r')rrrZsimple_noderZ	left_noderrr�
find_metasds$�
�



��r)cCs�|jddd�}|r|��}|jtjkrn|s
|r?|��}t|t�r0|jtjkr0|jr.d|_dS|�	|jddd��|sdSdS)z� If an INDENT is followed by a thing with a prefix then nuke the prefix
        Otherwise we get in trouble when removing __metaclass__ at suite start
    Nr%�)
r	�popr
r�INDENTrr�DEDENTr#�extend)rZkidsrrrr�fixup_indent{s��r/c@seZdZdZdZdd�ZdS)�FixMetaclassTz
    classdef<any*>
    cCs@t|�sdSt|�d}t|�D]\}}}|}|��q|jdj}t|j�dkrM|jdjtjkr8|jd}nU|jd�	�}	t
tj|	g�}|�d|�n@t|j�dkrat
tjg�}|�d|�n,t|j�dkr�t
tjg�}|�dt
tjd��|�d|�|�dt
tjd��ntd	��|jdjd}
d
|
_|
j}|jr�|�t
tjd��d|
_nd
|
_|jd}d
|jd_d
|jd_|�|�t|�|js�|��t
|d�}
||
_|�|
�|�t
tjd��dSt|j�dk�r|jdjtjk�r|jdjtjk�rt
|d�}
|�d|
�|�dt
tjd��dSdSdSdS)Nr����r�)�(zUnexpected class definition�	metaclass�,� r*r�pass�
���r%)rr r)rr	r
�lenr�arglistrrZ	set_childr"rr�RPAR�LPARrrr#r�COMMAr/r&r,r-)�selfrZresultsZlast_metaclassrrZstmtZ	text_typer>rZmeta_txtZorig_meta_prefixrZ	pass_leafrrr�	transform�sd





�zFixMetaclass.transformN)�__name__�
__module__�__qualname__Z
BM_compatibleZPATTERNrCrrrrr0�sr0N)�__doc__r*rZpygramrZ
fixer_utilrrrrr r$r'r)r/ZBaseFixr0rrrr�<module>s

Filemanager

Name Type Size Permission Actions
__init__.cpython-310.opt-1.pyc File 154 B 0644
__init__.cpython-310.opt-2.pyc File 154 B 0644
__init__.cpython-310.pyc File 154 B 0644
fix_apply.cpython-310.opt-1.pyc File 1.62 KB 0644
fix_apply.cpython-310.opt-2.pyc File 1.54 KB 0644
fix_apply.cpython-310.pyc File 1.63 KB 0644
fix_asserts.cpython-310.opt-1.pyc File 1.26 KB 0644
fix_asserts.cpython-310.opt-2.pyc File 1.2 KB 0644
fix_asserts.cpython-310.pyc File 1.26 KB 0644
fix_basestring.cpython-310.opt-1.pyc File 677 B 0644
fix_basestring.cpython-310.opt-2.pyc File 636 B 0644
fix_basestring.cpython-310.pyc File 677 B 0644
fix_buffer.cpython-310.opt-1.pyc File 822 B 0644
fix_buffer.cpython-310.opt-2.pyc File 757 B 0644
fix_buffer.cpython-310.pyc File 822 B 0644
fix_dict.cpython-310.opt-1.pyc File 3.18 KB 0644
fix_dict.cpython-310.opt-2.pyc File 2.31 KB 0644
fix_dict.cpython-310.pyc File 3.23 KB 0644
fix_except.cpython-310.opt-1.pyc File 2.72 KB 0644
fix_except.cpython-310.opt-2.pyc File 2.29 KB 0644
fix_except.cpython-310.pyc File 2.72 KB 0644
fix_exec.cpython-310.opt-1.pyc File 1.11 KB 0644
fix_exec.cpython-310.opt-2.pyc File 975 B 0644
fix_exec.cpython-310.pyc File 1.12 KB 0644
fix_execfile.cpython-310.opt-1.pyc File 1.64 KB 0644
fix_execfile.cpython-310.opt-2.pyc File 1.52 KB 0644
fix_execfile.cpython-310.pyc File 1.65 KB 0644
fix_exitfunc.cpython-310.opt-1.pyc File 2.27 KB 0644
fix_exitfunc.cpython-310.opt-2.pyc File 2.2 KB 0644
fix_exitfunc.cpython-310.pyc File 2.27 KB 0644
fix_filter.cpython-310.opt-1.pyc File 2.4 KB 0644
fix_filter.cpython-310.opt-2.pyc File 1.95 KB 0644
fix_filter.cpython-310.pyc File 2.4 KB 0644
fix_funcattrs.cpython-310.opt-1.pyc File 990 B 0644
fix_funcattrs.cpython-310.opt-2.pyc File 926 B 0644
fix_funcattrs.cpython-310.pyc File 990 B 0644
fix_future.cpython-310.opt-1.pyc File 798 B 0644
fix_future.cpython-310.opt-2.pyc File 699 B 0644
fix_future.cpython-310.pyc File 798 B 0644
fix_getcwdu.cpython-310.opt-1.pyc File 802 B 0644
fix_getcwdu.cpython-310.opt-2.pyc File 740 B 0644
fix_getcwdu.cpython-310.pyc File 802 B 0644
fix_has_key.cpython-310.opt-1.pyc File 2.82 KB 0644
fix_has_key.cpython-310.opt-2.pyc File 2.26 KB 0644
fix_has_key.cpython-310.pyc File 2.83 KB 0644
fix_idioms.cpython-310.opt-1.pyc File 3.77 KB 0644
fix_idioms.cpython-310.opt-2.pyc File 3.29 KB 0644
fix_idioms.cpython-310.pyc File 3.83 KB 0644
fix_import.cpython-310.opt-1.pyc File 2.76 KB 0644
fix_import.cpython-310.opt-2.pyc File 2.46 KB 0644
fix_import.cpython-310.pyc File 2.76 KB 0644
fix_imports.cpython-310.opt-1.pyc File 4.53 KB 0644
fix_imports.cpython-310.opt-2.pyc File 4.48 KB 0644
fix_imports.cpython-310.pyc File 4.53 KB 0644
fix_imports2.cpython-310.opt-1.pyc File 560 B 0644
fix_imports2.cpython-310.opt-2.pyc File 463 B 0644
fix_imports2.cpython-310.pyc File 560 B 0644
fix_input.cpython-310.opt-1.pyc File 964 B 0644
fix_input.cpython-310.opt-2.pyc File 899 B 0644
fix_input.cpython-310.pyc File 964 B 0644
fix_intern.cpython-310.opt-1.pyc File 1.12 KB 0644
fix_intern.cpython-310.opt-2.pyc File 1.06 KB 0644
fix_intern.cpython-310.pyc File 1.12 KB 0644
fix_isinstance.cpython-310.opt-1.pyc File 1.53 KB 0644
fix_isinstance.cpython-310.opt-2.pyc File 1.23 KB 0644
fix_isinstance.cpython-310.pyc File 1.53 KB 0644
fix_itertools.cpython-310.opt-1.pyc File 1.53 KB 0644
fix_itertools.cpython-310.opt-2.pyc File 1.18 KB 0644
fix_itertools.cpython-310.pyc File 1.53 KB 0644
fix_itertools_imports.cpython-310.opt-1.pyc File 1.53 KB 0644
fix_itertools_imports.cpython-310.opt-2.pyc File 1.45 KB 0644
fix_itertools_imports.cpython-310.pyc File 1.54 KB 0644
fix_long.cpython-310.opt-1.pyc File 725 B 0644
fix_long.cpython-310.opt-2.pyc File 665 B 0644
fix_long.cpython-310.pyc File 725 B 0644
fix_map.cpython-310.opt-1.pyc File 3.02 KB 0644
fix_map.cpython-310.opt-2.pyc File 2.25 KB 0644
fix_map.cpython-310.pyc File 3.02 KB 0644
fix_metaclass.cpython-310.opt-1.pyc File 5.27 KB 0644
fix_metaclass.cpython-310.opt-2.pyc File 3.94 KB 0644
fix_metaclass.cpython-310.pyc File 5.29 KB 0644
fix_methodattrs.cpython-310.opt-1.pyc File 952 B 0644
fix_methodattrs.cpython-310.opt-2.pyc File 880 B 0644
fix_methodattrs.cpython-310.pyc File 952 B 0644
fix_ne.cpython-310.opt-1.pyc File 825 B 0644
fix_ne.cpython-310.opt-2.pyc File 784 B 0644
fix_ne.cpython-310.pyc File 825 B 0644
fix_next.cpython-310.opt-1.pyc File 3.01 KB 0644
fix_next.cpython-310.opt-2.pyc File 2.95 KB 0644
fix_next.cpython-310.pyc File 3.02 KB 0644
fix_nonzero.cpython-310.opt-1.pyc File 937 B 0644
fix_nonzero.cpython-310.opt-2.pyc File 882 B 0644
fix_nonzero.cpython-310.pyc File 937 B 0644
fix_numliterals.cpython-310.opt-1.pyc File 1.01 KB 0644
fix_numliterals.cpython-310.opt-2.pyc File 979 B 0644
fix_numliterals.cpython-310.pyc File 1.01 KB 0644
fix_operator.cpython-310.opt-1.pyc File 4.07 KB 0644
fix_operator.cpython-310.opt-2.pyc File 3.6 KB 0644
fix_operator.cpython-310.pyc File 4.07 KB 0644
fix_paren.cpython-310.opt-1.pyc File 1.37 KB 0644
fix_paren.cpython-310.opt-2.pyc File 1.24 KB 0644
fix_paren.cpython-310.pyc File 1.37 KB 0644
fix_print.cpython-310.opt-1.pyc File 2.21 KB 0644
fix_print.cpython-310.opt-2.pyc File 1.94 KB 0644
fix_print.cpython-310.pyc File 2.27 KB 0644
fix_raise.cpython-310.opt-1.pyc File 2.21 KB 0644
fix_raise.cpython-310.opt-2.pyc File 1.61 KB 0644
fix_raise.cpython-310.pyc File 2.21 KB 0644
fix_raw_input.cpython-310.opt-1.pyc File 809 B 0644
fix_raw_input.cpython-310.opt-2.pyc File 746 B 0644
fix_raw_input.cpython-310.pyc File 809 B 0644
fix_reduce.cpython-310.opt-1.pyc File 1.12 KB 0644
fix_reduce.cpython-310.opt-2.pyc File 1016 B 0644
fix_reduce.cpython-310.pyc File 1.12 KB 0644
fix_reload.cpython-310.opt-1.pyc File 1.13 KB 0644
fix_reload.cpython-310.opt-2.pyc File 1.07 KB 0644
fix_reload.cpython-310.pyc File 1.13 KB 0644
fix_renames.cpython-310.opt-1.pyc File 1.99 KB 0644
fix_renames.cpython-310.opt-2.pyc File 1.92 KB 0644
fix_renames.cpython-310.pyc File 1.99 KB 0644
fix_repr.cpython-310.opt-1.pyc File 859 B 0644
fix_repr.cpython-310.opt-2.pyc File 799 B 0644
fix_repr.cpython-310.pyc File 859 B 0644
fix_set_literal.cpython-310.opt-1.pyc File 1.66 KB 0644
fix_set_literal.cpython-310.opt-2.pyc File 1.59 KB 0644
fix_set_literal.cpython-310.pyc File 1.66 KB 0644
fix_standarderror.cpython-310.opt-1.pyc File 734 B 0644
fix_standarderror.cpython-310.opt-2.pyc File 684 B 0644
fix_standarderror.cpython-310.pyc File 734 B 0644
fix_sys_exc.cpython-310.opt-1.pyc File 1.39 KB 0644
fix_sys_exc.cpython-310.opt-2.pyc File 1.23 KB 0644
fix_sys_exc.cpython-310.pyc File 1.39 KB 0644
fix_throw.cpython-310.opt-1.pyc File 1.78 KB 0644
fix_throw.cpython-310.opt-2.pyc File 1.56 KB 0644
fix_throw.cpython-310.pyc File 1.78 KB 0644
fix_tuple_params.cpython-310.opt-1.pyc File 4.5 KB 0644
fix_tuple_params.cpython-310.opt-2.pyc File 4.17 KB 0644
fix_tuple_params.cpython-310.pyc File 4.5 KB 0644
fix_types.cpython-310.opt-1.pyc File 1.91 KB 0644
fix_types.cpython-310.opt-2.pyc File 1.45 KB 0644
fix_types.cpython-310.pyc File 1.91 KB 0644
fix_unicode.cpython-310.opt-1.pyc File 1.53 KB 0644
fix_unicode.cpython-310.opt-2.pyc File 1.36 KB 0644
fix_unicode.cpython-310.pyc File 1.53 KB 0644
fix_urllib.cpython-310.opt-1.pyc File 5.76 KB 0644
fix_urllib.cpython-310.opt-2.pyc File 5.23 KB 0644
fix_urllib.cpython-310.pyc File 5.76 KB 0644
fix_ws_comma.cpython-310.opt-1.pyc File 1.11 KB 0644
fix_ws_comma.cpython-310.opt-2.pyc File 951 B 0644
fix_ws_comma.cpython-310.pyc File 1.11 KB 0644
fix_xrange.cpython-310.opt-1.pyc File 2.48 KB 0644
fix_xrange.cpython-310.opt-2.pyc File 2.42 KB 0644
fix_xrange.cpython-310.pyc File 2.48 KB 0644
fix_xreadlines.cpython-310.opt-1.pyc File 1.11 KB 0644
fix_xreadlines.cpython-310.opt-2.pyc File 1012 B 0644
fix_xreadlines.cpython-310.pyc File 1.11 KB 0644
fix_zip.cpython-310.opt-1.pyc File 1.56 KB 0644
fix_zip.cpython-310.opt-2.pyc File 1.24 KB 0644
fix_zip.cpython-310.pyc File 1.56 KB 0644