Home
last modified time | relevance | path

Searched refs:TemplateSyntaxError (Results 1 – 23 of 23) sorted by relevance

/external/python/jinja/tests/
Dtest_imports.py6 from jinja2.exceptions import TemplateSyntaxError
53 with pytest.raises(TemplateSyntaxError):
57 with pytest.raises(TemplateSyntaxError):
60 with pytest.raises(TemplateSyntaxError):
63 with pytest.raises(TemplateSyntaxError):
73 with pytest.raises(TemplateSyntaxError):
76 with pytest.raises(TemplateSyntaxError):
Dtest_debug.py10 from jinja2 import TemplateSyntaxError
63 raise TemplateSyntaxError("wtf", 42)
75 original = TemplateSyntaxError("bad template", 42, "test", "test.txt")
91 with pytest.raises(TemplateSyntaxError) as exc_info:
Dtest_regression.py9 from jinja2 import TemplateSyntaxError
136 TemplateSyntaxError,
236 pytest.raises(TemplateSyntaxError, Template, "{% if %}....{% endif %}")
238 TemplateSyntaxError, Template, "{% if foo %}...{% elif %}...{% endif %}"
240 pytest.raises(TemplateSyntaxError, Template, "{% for x in %}..{% endfor %}")
Dtest_security.py7 from jinja2.exceptions import TemplateSyntaxError
66 TemplateSyntaxError,
71 TemplateSyntaxError,
Dtest_core_tags.py6 from jinja2 import TemplateSyntaxError
226 TemplateSyntaxError, env.from_string, "{% for loop in seq %}...{% endfor %}"
370 TemplateSyntaxError,
378 TemplateSyntaxError,
485 TemplateSyntaxError, env_trim.from_string, "{% set foo['bar'] = 1 %}"
Dtest_lexnparse.py6 from jinja2 import TemplateSyntaxError
164 pytest.raises(TemplateSyntaxError, env.from_string, t)
283 with pytest.raises(TemplateSyntaxError, match=expected):
472 with pytest.raises(TemplateSyntaxError):
497 TemplateSyntaxError, env.from_string, "{% block x %}{% endblock y %}"
510 TemplateSyntaxError, env.from_string, "{{ foo is string is sequence }}"
555 pytest.raises(TemplateSyntaxError, env.from_string, tmpl)
996 with pytest.raises(TemplateSyntaxError):
/external/python/jinja/src/jinja2/
Dlexer.py13 from .exceptions import TemplateSyntaxError
234 def __init__(self, message, cls=TemplateSyntaxError):
386 raise TemplateSyntaxError(
392 raise TemplateSyntaxError(
601 raise TemplateSyntaxError(
614 raise TemplateSyntaxError(msg, lineno, name, filename)
739 raise TemplateSyntaxError(
744 raise TemplateSyntaxError(
799 raise TemplateSyntaxError(
Dexceptions.py75 class TemplateSyntaxError(TemplateError): class
120 class TemplateAssertionError(TemplateSyntaxError):
Ddebug.py5 from . import TemplateSyntaxError
23 if isinstance(exc_value, TemplateSyntaxError) and not exc_value.translated:
Denvironment.py34 from .exceptions import TemplateSyntaxError
523 except TemplateSyntaxError:
543 except TemplateSyntaxError:
624 except TemplateSyntaxError:
659 raise TemplateSyntaxError(
663 except TemplateSyntaxError:
733 except TemplateSyntaxError as e:
D__init__.py18 from .exceptions import TemplateSyntaxError
Dext.py23 from .exceptions import TemplateSyntaxError
683 except TemplateSyntaxError:
Dparser.py4 from .exceptions import TemplateSyntaxError
55 def fail(self, msg, lineno=None, exc=TemplateSyntaxError):
/external/libchrome/third_party/jinja2/
Dlexer.py22 from jinja2.exceptions import TemplateSyntaxError
224 def __init__(self, message, cls=TemplateSyntaxError):
377 raise TemplateSyntaxError('unexpected end of template, '
381 raise TemplateSyntaxError("expected token %r, got %r" %
579 raise TemplateSyntaxError(
590 raise TemplateSyntaxError(msg, lineno, name, filename)
681 raise TemplateSyntaxError('unexpected \'%s\'' %
686 raise TemplateSyntaxError('unexpected \'%s\', '
737 raise TemplateSyntaxError('unexpected char %r at %d' %
Dexceptions.py81 class TemplateSyntaxError(TemplateError): class
119 class TemplateAssertionError(TemplateSyntaxError):
Ddebug.py17 from jinja2.exceptions import TemplateSyntaxError
114 return isinstance(self.exc_value, TemplateSyntaxError)
135 if isinstance(exc_value, TemplateSyntaxError):
Denvironment.py27 from jinja2.exceptions import TemplateSyntaxError, TemplateNotFound, \
491 except TemplateSyntaxError:
512 except TemplateSyntaxError:
589 except TemplateSyntaxError:
626 raise TemplateSyntaxError('chunk after expression',
630 except TemplateSyntaxError:
710 except TemplateSyntaxError as e:
D__init__.py50 TemplateNotFound, TemplatesNotFound, TemplateSyntaxError, \
Dext.py23 from jinja2.exceptions import TemplateAssertionError, TemplateSyntaxError
611 except TemplateSyntaxError as e:
Dparser.py12 from jinja2.exceptions import TemplateSyntaxError, TemplateAssertionError
52 def fail(self, msg, lineno=None, exc=TemplateSyntaxError):
/external/python/jinja/docs/examples/
Dinline_gettext_extension.py3 from jinja2.exceptions import TemplateSyntaxError
67 raise TemplateSyntaxError(
/external/python/jinja/
DCHANGES.rst153 - ``TemplateSyntaxError.source`` is not empty when raised from an
160 - ``TemplateSyntaxError`` can be pickled. :pr:`1117`
/external/python/jinja/docs/
Dapi.rst625 .. autoexception:: jinja2.TemplateSyntaxError