summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hellkamp <marc@gsites.de>2009-07-17 23:33:47 +0200
committerMarcel Hellkamp <marc@gsites.de>2009-07-17 23:33:47 +0200
commita9c5e5a3598d74df292d20c5e0370c22c0e2500d (patch)
tree088c9abba9435bfda5c5e3ad1f32bde94c2053b4
parente07d4abc19e337dc2f55024d242012663d979b52 (diff)
downloadbottle-a9c5e5a3598d74df292d20c5e0370c22c0e2500d.tar.gz
Fixed a bug with global and local namespaces in SimpleTemplate
-rw-r--r--bottle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bottle.py b/bottle.py
index f9dae09..d58646f 100644
--- a/bottle.py
+++ b/bottle.py
@@ -659,7 +659,7 @@ class SimpleTemplate(BaseTemplate):
''' Returns the rendered template using keyword arguments as local variables. '''
args['stdout'] = []
args['_subtemplates'] = self.subtemplates
- exec self.co in args, globals()
+ exec self.co in args
return ''.join(args['stdout'])