OLD | NEW |
1 # -*- coding: utf-8 -*- | 1 # -*- coding: utf-8 -*- |
2 """ | 2 """ |
3 jinja2.debug | 3 jinja2.debug |
4 ~~~~~~~~~~~~ | 4 ~~~~~~~~~~~~ |
5 | 5 |
6 Implements the debug interface for Jinja. This module does some pretty | 6 Implements the debug interface for Jinja. This module does some pretty |
7 ugly stuff with the Python traceback system in order to achieve tracebacks | 7 ugly stuff with the Python traceback system in order to achieve tracebacks |
8 with correct line numbers, locals and contents. | 8 with correct line numbers, locals and contents. |
9 | 9 |
10 :copyright: (c) 2010 by the Jinja Team. | 10 :copyright: (c) 2010 by the Jinja Team. |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 | 328 |
329 # try to get a tb_set_next implementation if we don't have transparent | 329 # try to get a tb_set_next implementation if we don't have transparent |
330 # proxies. | 330 # proxies. |
331 tb_set_next = None | 331 tb_set_next = None |
332 if tproxy is None: | 332 if tproxy is None: |
333 try: | 333 try: |
334 tb_set_next = _init_ugly_crap() | 334 tb_set_next = _init_ugly_crap() |
335 except: | 335 except: |
336 pass | 336 pass |
337 del _init_ugly_crap | 337 del _init_ugly_crap |
OLD | NEW |