changeset 193:404c02f3156b trunk

Fix for Python 2.3 compatibility in `py:with` directive (regression in [240]).
author cmlenz
date Thu, 24 Aug 2006 19:03:24 +0000
parents b64e36bc1100
children c0535b218466
files markup/template.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/markup/template.py
+++ b/markup/template.py
@@ -689,7 +689,7 @@
         ctxt.push(frame)
         for names, expr in self.vars:
             value = expr.evaluate(ctxt, nocall=True)
-            frame.update(dict((name, value) for name in names))
+            frame.update(dict([(name, value) for name in names]))
         for event in _apply_directives(stream, ctxt, directives):
             yield event
         ctxt.pop()
Copyright (C) 2012-2017 Edgewall Software