From: Armin Ronacher Date: Mon, 28 Apr 2008 17:59:02 +0000 (+0200) Subject: fixed xmlattr again X-Git-Tag: 2.0rc1~120 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8b085c350aa62e0ea860a3823d1688a0f6d49313;p=jinja2.git fixed xmlattr again --HG-- branch : trunk --- diff --git a/jinja2/filters.py b/jinja2/filters.py index ce8a976..5832700 100644 --- a/jinja2/filters.py +++ b/jinja2/filters.py @@ -116,7 +116,7 @@ def do_xmlattr(_environment, d, autospace=True): """ rv = u' '.join( u'%s="%s"' % (escape(key), escape(value)) - for key, value in dict(*args, **kwargs).iteritems() + for key, value in d.iteritems() if value is not None and not isinstance(value, Undefined) ) if autospace and rv: