$93 GRAYBYTE WORDPRESS FILE MANAGER $67

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.23
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python33/lib64/python3.3/lib2to3/fixes/__pycache__/

HOME
Current File : /opt/alt/python33/lib64/python3.3/lib2to3/fixes/__pycache__//fix_metaclass.cpython-33.pyo
�
��f	 c@s�dZddlmZddlmZddlmZmZmZm	Z	dd�Z
dd�Zd	d
�Zdd�Z
d
d�Zdd�ZGdd�dej�ZdS(u�Fixer for __metaclass__ = X -> (metaclass=X) methods.

   The various forms of classef (inherits nothing, inherits once, inherints
   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.

i(u
fixer_base(utoken(uNameusymsuNodeuLeafcCs�x�|jD]�}|jtjkr,t|�S|jtjkr
|jr
|jd}|jtjkr�|jr�|jd}t|t�r�|j	dkr�dSq�q
q
WdS(u� we have to check the cls_node without changing it.
        There are two possiblities:
          1)  clsdef => suite => simple_stmt => expr_stmt => Leaf('__meta')
          2)  clsdef => simple_stmt => expr_stmt => Leaf('__meta')
    iu
__metaclass__TF(uchildrenutypeusymsusuiteu
has_metaclassusimple_stmtu	expr_stmtu
isinstanceuLeafuvalueuTrueuFalse(uparentunodeu	expr_nodeu	left_side((u@/opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_metaclass.pyu
has_metaclasss


u
has_metaclasscCs�x'|jD]}|jtjkr
dSq
Wx?t|j�D]"\}}|jtjkr:Pq:q:Wtd��ttjg�}xI|j|dd�r�|j|d}|j	|j
��|j�q�W|j	|�|}dS(uf one-line classes don't get a suite in the parse tree so we add
        one to normalize the tree
    NuNo class suite and no ':'!i(uchildrenutypeusymsusuiteu	enumerateutokenuCOLONu
ValueErroruNodeuappend_childucloneuremove(ucls_nodeunodeuiusuiteu	move_node((u@/opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_metaclass.pyufixup_parse_tree-s
ufixup_parse_treec
Cs�x7t|j�D]"\}}|jtjkrPqqWdS|j�ttjg�}ttj	|g�}xA|j|d�r�|j|}|j
|j��|j�qnW|j||�|jdjd}|jdjd}	|	j
|_
dS(u� 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
    Ni(u	enumerateuchildrenutypeutokenuSEMIuremoveuNodeusymsu	expr_stmtusimple_stmtuappend_childucloneuinsert_childuprefix(
uparentuiu	stmt_nodeusemi_indunodeunew_exprunew_stmtu	move_nodeu	new_leaf1u	old_leaf1((u@/opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_metaclass.pyufixup_simple_stmtGs

ufixup_simple_stmtcCs:|jr6|jdjtjkr6|jdj�ndS(Nii����i����(uchildrenutypeutokenuNEWLINEuremove(unode((u@/opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_metaclass.pyuremove_trailing_newline_s"uremove_trailing_newlineccs�x3|jD]}|jtjkr
Pq
q
Wtd��x�tt|j��D]�\}}|jtjkrL|jrL|jd}|jtjkr�|jr�|jd}t	|t
�r�|jdkr�t|||�t
|�|||fVq�q�qLqLWdS(NuNo class suite!iu
__metaclass__(uchildrenutypeusymsusuiteu
ValueErrorulistu	enumerateusimple_stmtu	expr_stmtu
isinstanceuLeafuvalueufixup_simple_stmturemove_trailing_newline(ucls_nodeunodeuiusimple_nodeu	expr_nodeu	left_node((u@/opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_metaclass.pyu
find_metasds"


u
find_metascCs�|jddd�}x,|rD|j�}|jtjkrPqqWxm|r�|j�}t|t�r�|jtjkr�|jr�d|_ndS|j	|jddd��qHWdS(u� 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
    Niui����i����(
uchildrenupoputypeutokenuINDENTu
isinstanceuLeafuDEDENTuprefixuextend(usuiteukidsunode((u@/opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_metaclass.pyufixup_indent{s		!	ufixup_indentcBs,|EeZdZdZdZdd�ZdS(uFixMetaclassu
    classdef<any*>
    cCst|�sdSt|�d}x-t|�D]\}}}|}|j�q-W|jdj}t|j�dkr�|jdjtj	kr�|jd}q�|jdj
�}	ttj	|	g�}|jd|�n�t|j�dkrttj	g�}|j
d|�n~t|j�dkr�ttj	g�}|j
dttjd��|j
d|�|j
dttjd��ntd	��|jdjd}
d
|
_|
j}|jr�|jttjd��d|
_n	d
|
_|jd}d
|jd_d
|jd_|j|�t|�|js�|j�t|d�}
||
_|j|
�|jttjd��n�t|j�dkr|jdjtjkr|jdjtjkrt|d�}
|j
d|
�|j
dttjd��ndS(Niiiiiiu)u(uUnexpected class definitionu	metaclassu,u uiupassu
i����i����i����i����(u
has_metaclassufixup_parse_treeuNoneu
find_metasuremoveuchildrenutypeulenusymsuarglistucloneuNodeu	set_childuinsert_childuLeafutokenuRPARuLPARu
ValueErroruvalueuprefixuappend_childuCOMMAufixup_indentuNEWLINEuINDENTuDEDENT(uselfunodeuresultsulast_metaclassusuiteuiustmtu	text_typeuarglistuparentumeta_txtuorig_meta_prefixu	expr_stmtu	pass_leaf((u@/opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_metaclass.pyu	transform�s^
				


	
	
uFixMetaclass.transformNT(u__name__u
__module__u__qualname__uTrueu
BM_compatibleuPATTERNu	transform(u
__locals__((u@/opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_metaclass.pyuFixMetaclass�suFixMetaclassN(u__doc__uu
fixer_baseupygramutokenu
fixer_utiluNameusymsuNodeuLeafu
has_metaclassufixup_parse_treeufixup_simple_stmturemove_trailing_newlineu
find_metasufixup_indentuBaseFixuFixMetaclass(((u@/opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_metaclass.pyu<module>s"


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-33.pyc
0.15 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
__init__.cpython-33.pyo
0.15 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_apply.cpython-33.pyc
2.109 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_apply.cpython-33.pyo
2.077 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_basestring.cpython-33.pyc
0.992 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_basestring.cpython-33.pyo
0.992 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_buffer.cpython-33.pyc
1.134 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_buffer.cpython-33.pyo
1.134 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_callable.cpython-33.pyc
1.727 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_callable.cpython-33.pyo
1.727 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_dict.cpython-33.pyc
4.498 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_dict.cpython-33.pyo
4.376 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_except.cpython-33.pyc
3.893 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_except.cpython-33.pyo
3.893 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_exec.cpython-33.pyc
1.609 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_exec.cpython-33.pyo
1.577 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_execfile.cpython-33.pyc
2.339 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_execfile.cpython-33.pyo
2.307 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_exitfunc.cpython-33.pyc
3.18 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_exitfunc.cpython-33.pyo
3.18 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_filter.cpython-33.pyc
2.463 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_filter.cpython-33.pyo
2.463 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_funcattrs.cpython-33.pyc
1.312 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_funcattrs.cpython-33.pyo
1.312 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_future.cpython-33.pyc
1.104 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_future.cpython-33.pyo
1.104 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_getcwdu.cpython-33.pyc
1.114 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_getcwdu.cpython-33.pyo
1.114 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_has_key.cpython-33.pyc
3.783 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_has_key.cpython-33.pyo
3.751 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_idioms.cpython-33.pyc
5.134 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_idioms.cpython-33.pyo
5.028 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_import.cpython-33.pyc
3.986 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_import.cpython-33.pyo
3.986 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_imports.cpython-33.pyc
6.324 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_imports.cpython-33.pyo
6.324 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_imports2.cpython-33.pyc
0.755 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_imports2.cpython-33.pyo
0.755 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_input.cpython-33.pyc
1.327 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_input.cpython-33.pyo
1.327 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_intern.cpython-33.pyc
2.033 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_intern.cpython-33.pyo
2.033 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_isinstance.cpython-33.pyc
2.026 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_isinstance.cpython-33.pyo
2.026 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_itertools.cpython-33.pyc
1.983 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_itertools.cpython-33.pyo
1.983 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_itertools_imports.cpython-33.pyc
2.265 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_itertools_imports.cpython-33.pyo
2.221 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_long.cpython-33.pyc
1.039 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_long.cpython-33.pyo
1.039 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_map.cpython-33.pyc
3.25 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_map.cpython-33.pyo
3.25 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_metaclass.cpython-33.pyc
7.581 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_metaclass.cpython-33.pyo
7.523 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_methodattrs.cpython-33.pyc
1.322 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_methodattrs.cpython-33.pyo
1.322 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_ne.cpython-33.pyc
1.224 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_ne.cpython-33.pyo
1.224 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_next.cpython-33.pyc
4.56 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_next.cpython-33.pyo
4.527 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_nonzero.cpython-33.pyc
1.274 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_nonzero.cpython-33.pyo
1.274 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_numliterals.cpython-33.pyc
1.549 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_numliterals.cpython-33.pyo
1.549 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_operator.cpython-33.pyc
6.379 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_operator.cpython-33.pyo
6.379 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_paren.cpython-33.pyc
1.721 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_paren.cpython-33.pyo
1.721 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_print.cpython-33.pyc
3.268 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_print.cpython-33.pyo
3.173 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_raise.cpython-33.pyc
2.932 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_raise.cpython-33.pyo
2.932 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_raw_input.cpython-33.pyc
1.128 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_raw_input.cpython-33.pyo
1.128 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_reduce.cpython-33.pyc
1.444 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_reduce.cpython-33.pyo
1.444 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_renames.cpython-33.pyc
2.957 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_renames.cpython-33.pyo
2.957 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_repr.cpython-33.pyc
1.222 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_repr.cpython-33.pyo
1.222 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_set_literal.cpython-33.pyc
2.269 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_set_literal.cpython-33.pyo
2.269 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_standarderror.cpython-33.pyc
1.063 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_standarderror.cpython-33.pyo
1.063 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_sys_exc.cpython-33.pyc
1.985 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_sys_exc.cpython-33.pyo
1.985 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_throw.cpython-33.pyc
2.437 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_throw.cpython-33.pyo
2.437 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_tuple_params.cpython-33.pyc
6.89 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_tuple_params.cpython-33.pyo
6.89 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_types.cpython-33.pyc
2.513 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_types.cpython-33.pyo
2.513 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_unicode.cpython-33.pyc
2.242 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_unicode.cpython-33.pyo
2.242 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_urllib.cpython-33.pyc
8.157 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_urllib.cpython-33.pyo
8.157 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_ws_comma.cpython-33.pyc
1.579 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_ws_comma.cpython-33.pyo
1.579 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_xrange.cpython-33.pyc
3.826 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_xrange.cpython-33.pyo
3.826 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_xreadlines.cpython-33.pyc
1.563 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_xreadlines.cpython-33.pyo
1.563 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_zip.cpython-33.pyc
1.542 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fix_zip.cpython-33.pyo
1.542 KB
17 Apr 2024 4.58 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF