Documented the API changes in get_template and select_template.
--HG--
branch : trunk
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 @@
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 @@
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 '