SILENT KILLERPanel

Current Path: > > opt > alt > python27 > lib64 > python2.7 > compiler


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/alt/python27/lib64/python2.7/compiler

NameTypeSizeLast ModifiedActions
__init__.py File 1023 bytes January 08 2025 10:43:00.
__init__.pyc File 1310 bytes January 08 2025 10:43:01.
__init__.pyo File 1310 bytes January 08 2025 10:43:01.
ast.py File 37508 bytes January 08 2025 10:43:01.
ast.pyc File 77182 bytes January 08 2025 10:43:00.
ast.pyo File 77182 bytes January 08 2025 10:43:00.
consts.py File 468 bytes January 08 2025 10:43:00.
consts.pyc File 750 bytes January 08 2025 10:43:00.
consts.pyo File 750 bytes January 08 2025 10:43:00.
future.py File 1893 bytes January 08 2025 10:43:01.
future.pyc File 3086 bytes January 08 2025 10:43:00.
future.pyo File 3086 bytes January 08 2025 10:43:00.
misc.py File 1794 bytes January 08 2025 10:43:01.
misc.pyc File 3980 bytes January 08 2025 10:43:01.
misc.pyo File 3980 bytes January 08 2025 10:43:01.
pyassem.py File 24268 bytes January 08 2025 10:43:00.
pyassem.pyc File 26991 bytes January 08 2025 10:43:01.
pyassem.pyo File 26417 bytes January 08 2025 10:43:01.
pycodegen.py File 47809 bytes January 08 2025 10:43:01.
pycodegen.pyc File 58764 bytes January 08 2025 10:43:01.
pycodegen.pyo File 58320 bytes January 08 2025 10:43:00.
symbols.py File 14489 bytes January 08 2025 10:43:01.
symbols.pyc File 18405 bytes January 08 2025 10:43:00.
symbols.pyo File 18371 bytes January 08 2025 10:43:01.
syntax.py File 1444 bytes January 08 2025 10:43:00.
syntax.pyc File 1960 bytes January 08 2025 10:43:01.
syntax.pyo File 1960 bytes January 08 2025 10:43:01.
transformer.py File 53116 bytes January 08 2025 10:43:01.
transformer.pyc File 49270 bytes January 08 2025 10:43:01.
transformer.pyo File 47455 bytes January 08 2025 10:43:01.
visitor.py File 3896 bytes January 08 2025 10:43:01.
visitor.pyc File 4317 bytes January 08 2025 10:43:01.
visitor.pyo File 4317 bytes January 08 2025 10:43:01.

Reading File: //opt/alt/python27/lib64/python2.7/compiler/misc.py

def flatten(tup):
    elts = []
    for elt in tup:
        if isinstance(elt, tuple):
            elts = elts + flatten(elt)
        else:
            elts.append(elt)
    return elts

class Set:
    def __init__(self):
        self.elts = {}
    def __len__(self):
        return len(self.elts)
    def __contains__(self, elt):
        return elt in self.elts
    def add(self, elt):
        self.elts[elt] = elt
    def elements(self):
        return self.elts.keys()
    def has_elt(self, elt):
        return elt in self.elts
    def remove(self, elt):
        del self.elts[elt]
    def copy(self):
        c = Set()
        c.elts.update(self.elts)
        return c

class Stack:
    def __init__(self):
        self.stack = []
        self.pop = self.stack.pop
    def __len__(self):
        return len(self.stack)
    def push(self, elt):
        self.stack.append(elt)
    def top(self):
        return self.stack[-1]
    def __getitem__(self, index): # needed by visitContinue()
        return self.stack[index]

MANGLE_LEN = 256 # magic constant from compile.c

def mangle(name, klass):
    if not name.startswith('__'):
        return name
    if len(name) + 2 >= MANGLE_LEN:
        return name
    if name.endswith('__'):
        return name
    try:
        i = 0
        while klass[i] == '_':
            i = i + 1
    except IndexError:
        return name
    klass = klass[i:]

    tlen = len(klass) + len(name)
    if tlen > MANGLE_LEN:
        klass = klass[:MANGLE_LEN-tlen]

    return "_%s%s" % (klass, name)

def set_filename(filename, tree):
    """Set the filename attribute to filename on every node in tree"""
    worklist = [tree]
    while worklist:
        node = worklist.pop(0)
        node.filename = filename
        worklist.extend(node.getChildNodes())

SILENT KILLER Tool