Documented the API changes in get_template and select_template.
authorArmin Ronacher <armin.ronacher@active-4.com>
Tue, 16 Feb 2010 16:37:17 +0000 (17:37 +0100)
committerArmin Ronacher <armin.ronacher@active-4.com>
Tue, 16 Feb 2010 16:37:17 +0000 (17:37 +0100)
--HG--
branch : trunk

jinja2/environment.py

index 4e9e4fd05c77724486b0e996f6da9926dfa9777e..7c4a5a936aa67b49cd5c1046bde0d52480203607 100644 (file)
@@ -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 '