Searched refs:TemplateSyntaxError (Results 1 – 23 of 23) sorted by relevance
/external/python/jinja/tests/ |
D | test_imports.py | 6 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):
|
D | test_debug.py | 10 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:
|
D | test_regression.py | 9 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 %}")
|
D | test_security.py | 7 from jinja2.exceptions import TemplateSyntaxError 66 TemplateSyntaxError, 71 TemplateSyntaxError,
|
D | test_core_tags.py | 6 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 %}"
|
D | test_lexnparse.py | 6 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/ |
D | lexer.py | 13 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(
|
D | exceptions.py | 75 class TemplateSyntaxError(TemplateError): class 120 class TemplateAssertionError(TemplateSyntaxError):
|
D | debug.py | 5 from . import TemplateSyntaxError 23 if isinstance(exc_value, TemplateSyntaxError) and not exc_value.translated:
|
D | environment.py | 34 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__.py | 18 from .exceptions import TemplateSyntaxError
|
D | ext.py | 23 from .exceptions import TemplateSyntaxError 683 except TemplateSyntaxError:
|
D | parser.py | 4 from .exceptions import TemplateSyntaxError 55 def fail(self, msg, lineno=None, exc=TemplateSyntaxError):
|
/external/libchrome/third_party/jinja2/ |
D | lexer.py | 22 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' %
|
D | exceptions.py | 81 class TemplateSyntaxError(TemplateError): class 119 class TemplateAssertionError(TemplateSyntaxError):
|
D | debug.py | 17 from jinja2.exceptions import TemplateSyntaxError 114 return isinstance(self.exc_value, TemplateSyntaxError) 135 if isinstance(exc_value, TemplateSyntaxError):
|
D | environment.py | 27 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__.py | 50 TemplateNotFound, TemplatesNotFound, TemplateSyntaxError, \
|
D | ext.py | 23 from jinja2.exceptions import TemplateAssertionError, TemplateSyntaxError 611 except TemplateSyntaxError as e:
|
D | parser.py | 12 from jinja2.exceptions import TemplateSyntaxError, TemplateAssertionError 52 def fail(self, msg, lineno=None, exc=TemplateSyntaxError):
|
/external/python/jinja/docs/examples/ |
D | inline_gettext_extension.py | 3 from jinja2.exceptions import TemplateSyntaxError 67 raise TemplateSyntaxError(
|
/external/python/jinja/ |
D | CHANGES.rst | 153 - ``TemplateSyntaxError.source`` is not empty when raised from an 160 - ``TemplateSyntaxError`` can be pickled. :pr:`1117`
|
/external/python/jinja/docs/ |
D | api.rst | 625 .. autoexception:: jinja2.TemplateSyntaxError
|