Skip to content
Myr

Revert "add warning and alias for jinja2"

Before adoption: this commit came in with the history the project adopted, so no landing records it.

This reverts commit fc9c60ba457efc4cadf6fa2886567e0ee6ca1a99.

authored by David Lord · committed by David Lord · parent 8d85f9c · Browse files · 7 files+15 added−12 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

7 files+15 added−12 removed

  • tests:+3 added−3 removed
  • other:+12 added−9 removed

7 files+15 added−12 removed

modified:src/jinja/__init__.py+1 added-1 removed
38 unmodified lines
39from .utils import is_undefined40from .utils import Markup41from .utils import select_autoescape4243__version__ = "2.11.0rc1"43__version__ = "2.11.0.dev0"
modified:src/jinja/compiler.py+1 added-1 removed
710 unmodified lines
711 def visit_Template(self, node, frame=None):712 assert frame is None, "no root frame allowed"713 eval_ctx = EvalContext(self.environment, self.name)714715 from .runtime import exported715 from .runtime import __all__ as exported716717 self.writeline("from __future__ import %s" % ", ".join(code_features))718 self.writeline("from jinja.runtime import " + ", ".join(exported))719
1123 unmodified lines
modified:src/jinja/defaults.py+3 added
40 unmodified lines
41 "json.dumps_function": None,42 "json.dumps_kwargs": {"sort_keys": True},43 "ext.i18n.trimmed": False,44}4546# export all constants47__all__ = tuple(x for x in locals().keys() if x.isupper())
modified:src/jinja/runtime.py+5 added-5 removed
2 unmodified lines
3import sys4from itertools import chain5from types import MethodType67from markupsafe import escape # noqa: F4017from markupsafe import escape8from markupsafe import Markup9from markupsafe import soft_unicode1011from ._compat import abc
4 unmodified lines
16from ._compat import PY217from ._compat import string_types18from ._compat import text_type19from ._compat import with_metaclass20from .exceptions import TemplateNotFound # noqa: F40121from .exceptions import TemplateRuntimeError # noqa: F40120from .exceptions import TemplateNotFound21from .exceptions import TemplateRuntimeError22from .exceptions import UndefinedError23from .nodes import EvalContext24from .utils import concat25from .utils import evalcontextfunction26from .utils import internalcode27from .utils import missing28from .utils import Namespace # noqa: F40128from .utils import Namespace29from .utils import object_type_repr3031# these variables are exported to the template runtime32exported = [32__all__ = [33 "LoopContext",34 "TemplateReference",35 "Macro",36 "Markup",
975 unmodified lines
modified:tests/test_bytecode_cache.py+3 added-3 removed
7 unmodified lines
8from jinja.exceptions import TemplateNotFound91011@pytest.fixture12def env(package_loader, tmp_path):13 bytecode_cache = FileSystemBytecodeCache(str(tmp_path))14 return Environment(loader=package_loader, bytecode_cache=bytecode_cache)12def env(package_loader):13 bytecode_cache = FileSystemBytecodeCache()14 return Environment(loader=package_loader, bytecode_cache=bytecode_cache,)151617@pytest.mark.byte_code_cache18class TestByteCodeCache(object):
61 unmodified lines
modified:MANIFEST.in-1 removed
3 unmodified lines
4prune docs/_build5graft examples6graft ext7graft tests8global-exclude *.pyc
modified:setup.py+2 added-1 removed
18 unmodified lines
19 "Code": "https://github.com/pallets/jinja",20 "Issue tracker": "https://github.com/pallets/jinja/issues",21 },22 license="BSD-3-Clause",23 author="Armin Ronacher",24 author_email="armin.ronacher@active-4.com",25 maintainer="Pallets",26 maintainer_email="contact@palletsprojects.com",27 description="A very fast and expressive template engine.",28 long_description=readme,
9 unmodified lines
38 "Programming Language :: Python :: 3",39 "Programming Language :: Python :: 3.5",40 "Programming Language :: Python :: 3.6",41 "Programming Language :: Python :: 3.7",40 "Programming Language :: Python :: 3.8",42 "Programming Language :: Python :: Implementation :: CPython",43 "Programming Language :: Python :: Implementation :: PyPy",44 "Topic :: Internet :: WWW/HTTP :: Dynamic Content",45 "Topic :: Software Development :: Libraries :: Python Modules",
10 unmodified lines