jinja2.debug¶
Implements the debug interface for Jinja. This module does some pretty ugly stuff with the Python traceback system in order to achieve tracebacks with correct line numbers, locals and contents.
| copyright: |
|
|---|---|
| license: | BSD, see LICENSE for more details. |
Note
This file have been modified for Kivy usage, and its own kv language. We want to thanks a lot all the Jinja2 team for this awesome and ugly file ! :)
- class kivy.lib.debug.ProcessedTraceback(exc_type, exc_value, frames)¶
Bases: object
Holds a Jinja preprocessed traceback for printing or reraising.
- exc_info¶
Exception info tuple with a proxy around the frame objects.
- render_as_text(limit=None)¶
Return a string with the traceback.
- standard_exc_info¶
Standard python exc_info for re-raising
- class kivy.lib.debug.TracebackFrameProxy(tb)¶
Bases: object
Proxies a traceback frame.
- kivy.lib.debug.fake_exc_info(exc_info, filename, lineno)¶
Helper for translate_exception.
- kivy.lib.debug.make_traceback(exc_info, source_hint=None)¶
Creates a processed traceback object from the exc_info.
- kivy.lib.debug.tb_set_next(tb, next)¶
Set the tb_next attribute of a traceback object.
- kivy.lib.debug.translate_exception(exc_info, initial_skip=0)¶
If passed an exc_info it will automatically rewrite the exceptions all the way down to the correct line numbers and frames.
- kivy.lib.debug.translate_syntax_error(error, source=None)¶
Rewrites a syntax error to please traceback systems.