From 8b085c350aa62e0ea860a3823d1688a0f6d49313 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Mon, 28 Apr 2008 19:59:02 +0200 Subject: [PATCH] fixed xmlattr again --HG-- branch : trunk --- jinja2/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.26.2