GRAYBYTE WORDPRESS FILE MANAGER3920

Server IP : 198.54.121.189 / Your IP : 216.73.216.34
System : Linux premium69.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
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /lib64/python2.7/compiler/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current 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")

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
June 15 2024 08:34:30
root / root
0755
__init__.py
0.999 KB
April 10 2024 04:58:35
root / root
0644
__init__.pyc
1.267 KB
April 10 2024 04:58:46
root / root
0644
__init__.pyo
1.267 KB
April 10 2024 04:58:46
root / root
0644
ast.py
36.629 KB
April 10 2024 04:58:35
root / root
0644
ast.pyc
70.435 KB
April 10 2024 04:58:46
root / root
0644
ast.pyo
70.435 KB
April 10 2024 04:58:46
root / root
0644
consts.py
0.457 KB
April 10 2024 04:58:35
root / root
0644
consts.pyc
0.72 KB
April 10 2024 04:58:46
root / root
0644
consts.pyo
0.72 KB
April 10 2024 04:58:46
root / root
0644
future.py
1.849 KB
April 10 2024 04:58:35
root / root
0644
future.pyc
2.887 KB
April 10 2024 04:58:46
root / root
0644
future.pyo
2.887 KB
April 10 2024 04:58:46
root / root
0644
misc.py
1.752 KB
April 10 2024 04:58:35
root / root
0644
misc.pyc
3.646 KB
April 10 2024 04:58:46
root / root
0644
misc.pyo
3.646 KB
April 10 2024 04:58:46
root / root
0644
pyassem.py
23.699 KB
April 10 2024 04:58:35
root / root
0644
pyassem.pyc
25.343 KB
April 10 2024 04:58:46
root / root
0644
pyassem.pyo
24.782 KB
April 10 2024 04:58:43
root / root
0644
pycodegen.py
46.688 KB
April 10 2024 04:58:35
root / root
0644
pycodegen.pyc
55.19 KB
April 10 2024 04:58:46
root / root
0644
pycodegen.pyo
54.757 KB
April 10 2024 04:58:43
root / root
0644
symbols.py
14.149 KB
April 10 2024 04:58:35
root / root
0644
symbols.pyc
17.263 KB
April 10 2024 04:58:46
root / root
0644
symbols.pyo
17.229 KB
April 10 2024 04:58:43
root / root
0644
syntax.py
1.41 KB
April 10 2024 04:58:35
root / root
0644
syntax.pyc
1.838 KB
April 10 2024 04:58:46
root / root
0644
syntax.pyo
1.838 KB
April 10 2024 04:58:46
root / root
0644
transformer.py
51.871 KB
April 10 2024 04:58:35
root / root
0644
transformer.pyc
46.528 KB
April 10 2024 04:58:46
root / root
0644
transformer.pyo
44.756 KB
April 10 2024 04:58:43
root / root
0644
visitor.py
3.805 KB
April 10 2024 04:58:35
root / root
0644
visitor.pyc
4.089 KB
April 10 2024 04:58:46
root / root
0644
visitor.pyo
4.089 KB
April 10 2024 04:58:46
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF