diff options
| author | floatdrop <[email protected]> | 2022-02-10 16:47:15 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:47:15 +0300 |
| commit | 4267de875ca703ff841f2e025723dadc78f3cc02 (patch) | |
| tree | 9814fbd1c3effac9b8377c5d604b367b14e2db55 /contrib/python/Jinja2/py2/jinja2/defaults.py | |
| parent | e63b84f1d39557d9e46ac380b1f388271894293c (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'contrib/python/Jinja2/py2/jinja2/defaults.py')
| -rw-r--r-- | contrib/python/Jinja2/py2/jinja2/defaults.py | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/contrib/python/Jinja2/py2/jinja2/defaults.py b/contrib/python/Jinja2/py2/jinja2/defaults.py index 31154b6b0e6..8e0e7d77107 100644 --- a/contrib/python/Jinja2/py2/jinja2/defaults.py +++ b/contrib/python/Jinja2/py2/jinja2/defaults.py @@ -1,4 +1,4 @@ -# -*- coding: utf-8 -*- +# -*- coding: utf-8 -*- from ._compat import range_type from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401 from .tests import TESTS as DEFAULT_TESTS # noqa: F401 @@ -6,34 +6,34 @@ from .utils import Cycler from .utils import generate_lorem_ipsum from .utils import Joiner from .utils import Namespace - -# defaults for the parser / lexer + +# defaults for the parser / lexer BLOCK_START_STRING = "{%" BLOCK_END_STRING = "%}" VARIABLE_START_STRING = "{{" VARIABLE_END_STRING = "}}" COMMENT_START_STRING = "{#" COMMENT_END_STRING = "#}" -LINE_STATEMENT_PREFIX = None -LINE_COMMENT_PREFIX = None -TRIM_BLOCKS = False -LSTRIP_BLOCKS = False +LINE_STATEMENT_PREFIX = None +LINE_COMMENT_PREFIX = None +TRIM_BLOCKS = False +LSTRIP_BLOCKS = False NEWLINE_SEQUENCE = "\n" -KEEP_TRAILING_NEWLINE = False - +KEEP_TRAILING_NEWLINE = False + # default filters, tests and namespace - -DEFAULT_NAMESPACE = { + +DEFAULT_NAMESPACE = { "range": range_type, "dict": dict, "lipsum": generate_lorem_ipsum, "cycler": Cycler, "joiner": Joiner, "namespace": Namespace, -} - -# default policies -DEFAULT_POLICIES = { +} + +# default policies +DEFAULT_POLICIES = { "compiler.ascii_str": True, "urlize.rel": "noopener", "urlize.target": None, @@ -41,4 +41,4 @@ DEFAULT_POLICIES = { "json.dumps_function": None, "json.dumps_kwargs": {"sort_keys": True}, "ext.i18n.trimmed": False, -} +} |
