Skip to content
Myr

experimental Python 3 support.

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

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent 656d5e7 · Browse files · 3 files+11 added−4 removed
This commit

State

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

Diff stats

3 files+11 added−4 removed

  • other:+11 added−4 removed

3 files+11 added−4 removed

modified:jinja2/environment.py+3 added-3 removed
473 unmodified lines
474 True475 >>> env.compile_expression('var', undefined_to_none=False)()476 Undefined477478 **new in Jinja 2.1**478 .. versionadded:: 2.1479 """480 parser = Parser(self, source, state='variable')481 exc_info = None482 try:
80 unmodified lines
563 """Works like :meth:`get_template` but tries a number of templates564 before it fails. If it cannot find any of the templates, it will565 raise a :exc:`TemplatesNotFound` exception.566567 .. versionadded:: 2.2567 .. versionadded:: 2.3568 """569 if not names:570 raise TemplatesNotFound(message=u'Tried to select from an empty list '571 u'of templates.')
13 unmodified lines
585 """586 Does a typecheck and dispatches to :meth:`select_template` if an587 iterable of template names is given, otherwise to :meth:`get_template`.588589 .. versionadded:: 2.2589 .. versionadded:: 2.3590 """591 if isinstance(template_name_or_list, basestring):592 return self.get_template(template_name_or_list, parent, globals)593 return self.select_template(template_name_or_list, parent, globals)
334 unmodified lines
modified:CHANGES+1 added
18 unmodified lines
19 This change makes ``{% if %}...{% endif %}`` a syntax error20 now. (#364)21- added support for translator comments if extracted via babel.22- added with-statement extension.23- experimental Python 3 support.2425Version 2.2.126-------------27(bugfix release, released on September 14th 2009)
114 unmodified lines
modified:setup.py+7 added-1 removed
44 unmodified lines
45from setuptools import setup, Extension, Feature46from distutils.command.build_ext import build_ext47from distutils.errors import CCompilerError, DistutilsPlatformError4849try:50 from distutils.command.build_py import build_py_2to3 as build_py51except ImportError:52 from distutils.command.build_py import build_py535455setup(56 name='Jinja2',57 version='2.3',58 url='http://jinja.pocoo.org/',
28 unmodified lines
87 extras_require={'i18n': ['Babel>=0.8']},88 entry_points="""89 [babel.extractors]90 jinja2 = jinja2.ext:babel_extract[i18n]86 """91 """,92 cmdclass=dict(build_py=build_py)93)