__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
"""
This file is about errors in Python files and not about exception handling in
Jedi.
"""
def parso_to_jedi_errors(grammar, module_node):
return [SyntaxError(e) for e in grammar.iter_errors(module_node)]
class SyntaxError:
"""
Syntax errors are generated by :meth:`.Script.get_syntax_errors`.
"""
def __init__(self, parso_error):
self._parso_error = parso_error
@property
def line(self):
"""The line where the error starts (starting with 1)."""
return self._parso_error.start_pos[0]
@property
def column(self):
"""The column where the error starts (starting with 0)."""
return self._parso_error.start_pos[1]
@property
def until_line(self):
"""The line where the error ends (starting with 1)."""
return self._parso_error.end_pos[0]
@property
def until_column(self):
"""The column where the error ends (starting with 0)."""
return self._parso_error.end_pos[1]
def get_message(self):
return self._parso_error.message
def __repr__(self):
return '<%s from=%s to=%s>' % (
self.__class__.__name__,
self._parso_error.start_pos,
self._parso_error.end_pos,
)
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| refactoring | Folder | 0755 |
|
|
| __init__.py | File | 31.67 KB | 0644 |
|
| classes.py | File | 28.91 KB | 0644 |
|
| completion.py | File | 26.55 KB | 0644 |
|
| completion_cache.py | File | 954 B | 0644 |
|
| environment.py | File | 16.52 KB | 0644 |
|
| errors.py | File | 1.22 KB | 0644 |
|
| exceptions.py | File | 990 B | 0644 |
|
| file_name.py | File | 5.49 KB | 0644 |
|
| helpers.py | File | 18.54 KB | 0644 |
|
| interpreter.py | File | 2.36 KB | 0644 |
|
| keywords.py | File | 1.16 KB | 0644 |
|
| project.py | File | 16.16 KB | 0644 |
|
| replstartup.py | File | 950 B | 0644 |
|
| strings.py | File | 3.62 KB | 0644 |
|