SILENT KILLERPanel

Current Path: > > 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: //lib64/python2.7//compiler

NameTypeSizeLast ModifiedActions
__init__.py File 1023 bytes April 10 2024 04:58:35.
__init__.pyc File 1297 bytes April 10 2024 04:58:46.
__init__.pyo File 1297 bytes April 10 2024 04:58:46.
ast.py File 37508 bytes April 10 2024 04:58:35.
ast.pyc File 72125 bytes April 10 2024 04:58:46.
ast.pyo File 72125 bytes April 10 2024 04:58:46.
consts.py File 468 bytes April 10 2024 04:58:35.
consts.pyc File 737 bytes April 10 2024 04:58:46.
consts.pyo File 737 bytes April 10 2024 04:58:46.
future.py File 1893 bytes April 10 2024 04:58:35.
future.pyc File 2956 bytes April 10 2024 04:58:46.
future.pyo File 2956 bytes April 10 2024 04:58:46.
misc.py File 1794 bytes April 10 2024 04:58:35.
misc.pyc File 3733 bytes April 10 2024 04:58:46.
misc.pyo File 3733 bytes April 10 2024 04:58:46.
pyassem.py File 24268 bytes April 10 2024 04:58:35.
pyassem.pyc File 25951 bytes April 10 2024 04:58:46.
pyassem.pyo File 25377 bytes April 10 2024 04:58:43.
pycodegen.py File 47809 bytes April 10 2024 04:58:35.
pycodegen.pyc File 56515 bytes April 10 2024 04:58:46.
pycodegen.pyo File 56071 bytes April 10 2024 04:58:43.
symbols.py File 14489 bytes April 10 2024 04:58:35.
symbols.pyc File 17677 bytes April 10 2024 04:58:46.
symbols.pyo File 17643 bytes April 10 2024 04:58:43.
syntax.py File 1444 bytes April 10 2024 04:58:35.
syntax.pyc File 1882 bytes April 10 2024 04:58:46.
syntax.pyo File 1882 bytes April 10 2024 04:58:46.
transformer.py File 53116 bytes April 10 2024 04:58:35.
transformer.pyc File 47645 bytes April 10 2024 04:58:46.
transformer.pyo File 45830 bytes April 10 2024 04:58:43.
visitor.py File 3896 bytes April 10 2024 04:58:35.
visitor.pyc File 4187 bytes April 10 2024 04:58:46.
visitor.pyo File 4187 bytes April 10 2024 04:58:46.

Reading File: //lib64/python2.7//compiler/syntax.py

"""Check for errs in the AST.

The Python parser does not catch all syntax errors.  Others, like
assignments with invalid targets, are caught in the code generation
phase.

The compiler package catches some errors in the transformer module.
But it seems clearer to write checkers that use the AST to detect
errors.
"""

from compiler import ast, walk

def check(tree, multi=None):
    v = SyntaxErrorChecker(multi)
    walk(tree, v)
    return v.errors

class SyntaxErrorChecker:
    """A visitor to find syntax errors in the AST."""

    def __init__(self, multi=None):
        """Create new visitor object.

        If optional argument multi is not None, then print messages
        for each error rather than raising a SyntaxError for the
        first.
        """
        self.multi = multi
        self.errors = 0

    def error(self, node, msg):
        self.errors = self.errors + 1
        if self.multi is not None:
            print "%s:%s: %s" % (node.filename, node.lineno, msg)
        else:
            raise SyntaxError, "%s (%s:%s)" % (msg, node.filename, node.lineno)

    def visitAssign(self, node):
        # the transformer module handles many of these
        pass
##        for target in node.nodes:
##            if isinstance(target, ast.AssList):
##                if target.lineno is None:
##                    target.lineno = node.lineno
##                self.error(target, "can't assign to list comprehension")

SILENT KILLER Tool