From c2c63513055c6f4c2c28d147548bc1957b627d68 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Tue, 16 Feb 2010 17:37:17 +0100 Subject: [PATCH] Documented the API changes in get_template and select_template. --HG-- branch : trunk --- jinja2/environment.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/jinja2/environment.py b/jinja2/environment.py index 4e9e4fd..7c4a5a9 100644 --- a/jinja2/environment.py +++ b/jinja2/environment.py @@ -551,6 +551,10 @@ class Environment(object): If the template does not exist a :exc:`TemplateNotFound` exception is raised. + + .. versionchanged:: 2.4 + If `name` is a :class:`Template` object it is returned from the + function unchanged. """ if isinstance(name, Template): return name @@ -565,6 +569,10 @@ class Environment(object): raise a :exc:`TemplatesNotFound` exception. .. versionadded:: 2.3 + + .. versionchanged:: 2.4 + If `names` contains a :class:`Template` object it is returned + from the function unchanged. """ if not names: raise TemplatesNotFound(message=u'Tried to select from an empty list ' -- 2.26.2