# HG changeset patch # User cmlenz # Date 1156446204 0 # Node ID 404c02f3156bfa9e5a739b4bd7b25991eb52beba # Parent b64e36bc110092f77c420d62a26e94ec3b78b930 Fix for Python 2.3 compatibility in `py:with` directive (regression in [240]). diff --git a/markup/template.py b/markup/template.py --- 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()