From ec25a0c3bbbbecdcbd48b113c09164e7961422d6 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sat, 29 May 2010 22:01:59 +0200 Subject: [PATCH] Fixed a bug in add_extension --HG-- branch : trunk --- jinja2/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jinja2/environment.py b/jinja2/environment.py index c8abd51..a94bc6e 100644 --- a/jinja2/environment.py +++ b/jinja2/environment.py @@ -284,7 +284,7 @@ class Environment(object): .. versionadded:: 2.5 """ - load_extensions(self, [extension]) + self.extensions.update(load_extensions(self, [extension])) def extend(self, **attributes): """Add the items to the instance of the environment if they do not exist -- 2.26.2