%PDF- %PDF-
| Direktori : /opt/alt/python37/lib/python3.7/site-packages/jinja2/__pycache__/ |
| Current File : //opt/alt/python37/lib/python3.7/site-packages/jinja2/__pycache__/debug.cpython-37.pyc |
B
��R�* � @ s8 d Z ddlZddlZddlmZ ddlmZmZ ddlm Z ddl
mZmZm
Z
yddlmZ W n ek
rx dZY nX yed� W n. ek
r� d ZY n ek
r� d
ZY nX G dd� de�Zd
d� ZG dd� de�Zddd�Zddd�Zddd�Zdd� Zdd� ZdZedk�r4y
e� ZW n Y nX [dS )aQ
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: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
� N)�
TracebackType)�missing�
internal_code)�TemplateSyntaxError)� iteritems�reraise� code_type)�tproxyzraise TypeError, 'foo'zraise __jinja_exception__[1]z4raise __jinja_exception__[0], __jinja_exception__[1]c @ s@ e Zd ZdZdd� Zedd� �Zdd� Zedd � �Zd
d� Z dS )
�TracebackFrameProxyzProxies a traceback frame.c C s || _ d | _d S )N)�tb�_tb_next)�selfr � r �=/opt/alt/python37/lib/python3.7/site-packages/jinja2/debug.py�__init__'