Merge branch '2.9-maintenance' of github.com:pallets/jinja into 2.9-maintenance
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Armin Ronacher · committed by Armin Ronacher · parents a9b9258, 7589409 · Browse files · 11 files·+7 added−17 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
11 files+7 added−17 removed
- tests:+1 added−10 removed
- other:+6 added−7 removed
Provenance
- Commit
a7d4ec5- Tree
926b753- Author
Armin Ronacher <armin.ronacher@active-4.com>- Committer
Armin Ronacher <armin.ronacher@active-4.com>- Parent 1
a9b9258- Parent 2
7589409
11 files changed+7 added−17 removed
modified:jinja2/asyncsupport.py+1 added-1 removed
12 unmodified lines13 import asyncio14 import inspect15 from functools import update_wrapper16 17-from jinja2.utils import concat, internalcode, concat, Markup17+from jinja2.utils import concat, internalcode, Markup18 from jinja2.environment import TemplateModule19 from jinja2.runtime import LoopContextBase, _last_iteration20 21 216 unmodified linesmodified:jinja2/ext.py+1 added-1 removed
85 unmodified lines86 87 def filter_stream(self, stream):88 """It's passed a :class:`~jinja2.lexer.TokenStream` that can be used89 to filter tokens returned. This method has to return an iterable of90- :class:`~jinja2.lexer.Token`\s, but it doesn't have to return a90+ :class:`~jinja2.lexer.Token`\\s, but it doesn't have to return a91 :class:`~jinja2.lexer.TokenStream`.92 93 In the `ext` folder of the Jinja2 source distribution there is a file94 called `inlinegettext.py` which implements a filter that utilizes this515 unmodified linesmodified:jinja2/lexer.py+1 added-2 removed
18 unmodified lines19 from operator import itemgetter20 from collections import deque21 from jinja2.exceptions import TemplateSyntaxError22 from jinja2.utils import LRUCache23-from jinja2._compat import iteritems, implements_iterator, text_type, \24- intern, PY223+from jinja2._compat import iteritems, implements_iterator, text_type, intern24 25 26 # cache for the lexers. Exists in order to be able to have multiple27 # environments with the same lexer697 unmodified linesmodified:jinja2/sandbox.py+1 added-1 removed
15 unmodified lines16 import operator17 from collections import Mapping18 from jinja2.environment import Environment19 from jinja2.exceptions import SecurityError20-from jinja2._compat import string_types, text_type, PY220+from jinja2._compat import string_types, PY221 from jinja2.utils import Markup22 23 from markupsafe import EscapeFormatter24 from string import Formatter451 unmodified linesmodified:tests/conftest.py-4 removed
8 unmodified lines9 :license: BSD, see LICENSE for more details.10 """11 import pytest12 import os13-import re14-import sys13 16-from traceback import format_exception14 from jinja2 import loaders18-from jinja2._compat import PY215 from jinja2.utils import have_async_gen16 from jinja2 import Environment17 18 59 unmodified linesmodified:tests/test_async.py-1 removed
1 import pytest2 import asyncio3 4 from jinja2 import Template, Environment, DictLoader5-from jinja2.utils import have_async_gen5 from jinja2.exceptions import TemplateNotFound, TemplatesNotFound, \6 UndefinedError7 8 409 unmodified linesmodified:tests/test_debug.py-2 removed
9 unmodified lines10 """11 import pytest12 13 import re14-14 import sys15 from traceback import format_exception16 17 from jinja2 import Environment, TemplateSyntaxError19-from traceback import format_exception18 19 20 @pytest.fixture21 def fs_env(filesystem_loader):63 unmodified linesmodified:tests/test_ext.py+1 added-1 removed
17 unmodified lines18 from jinja2._compat import BytesIO, itervalues, text_type19 20 importable_object = 2321 22-_gettext_re = re.compile(r'_\((.*?)\)(?s)')22+_gettext_re = re.compile(r'_\((.*?)\)', re.DOTALL)23 24 25 i18n_templates = {26 'master.html': '<title>{{ page_title|default(_("missing")) }}</title>'471 unmodified linesmodified:tests/test_idtracking.py-2 removed
1-import pytest2-1 from jinja2 import nodes2 from jinja2.idtracking import symbols_for_node3 4 212 unmodified linesmodified:README.rst+1 added-1 removed
44 unmodified lines45 +---------------------+------------------------------------------------------------------------------+46 | ``master`` | .. image:: https://travis-ci.org/pallets/jinja.svg?branch=master |47 | | :target: https://travis-ci.org/pallets/jinja |48 +---------------------+------------------------------------------------------------------------------+49-| ``2.7-maintenance`` | .. image:: https://travis-ci.org/pallets/jinja.svg?branch=2.7-maintenance |49+| ``2.9-maintenance`` | .. image:: https://travis-ci.org/pallets/jinja.svg?branch=2.9-maintenance |50 | | :target: https://travis-ci.org/pallets/jinja |51 +---------------------+------------------------------------------------------------------------------+modified:tox.ini+1 added-1 removed
1 [tox]2-envlist = py26,py27,pypy,py33,py34,py352+envlist = py26,py27,pypy,py33,py34,py35,py363 4 [testenv]5 commands = py.test {posargs}6 2 unmodified lines