| commit 16: | 75054546065f |
| parent 15: | b8c2a88fd916 |
| branch: | default |
Suppress creation of the source attribute.
Trevor Caira /
trevor
11 months ago
11 months ago
Changed (Δ198 bytes):
raw changeset »
chouwa/loader.py (6 lines added, 0 lines removed)
Up to file-list chouwa/loader.py:
| … | … | @@ -38,6 +38,12 @@ import jinja2 |
38 |
38 |
from chouwa.environment import env |
39 |
39 |
|
40 |
40 |
class TemplateSyntaxError(jinja2.TemplateSyntaxError): |
41 |
def __init__(self, message, lineno, name, filename): |
|
42 |
jinja2.TemplateError.__init__(self, message) |
|
43 |
self.lineno = lineno |
|
44 |
self.name = name |
|
45 |
self.filename = filename |
|
46 |
||
41 |
47 |
def __unicode__(self): |
42 |
48 |
location = 'line %d' % self.lineno |
43 |
49 |
name = self.filename or self.name |
