Used dict comprehension in URLNode

4468c08d7 replaced a lot of the old `dict()` comprehensions
with the new style, but missed this one.
This commit is contained in:
Corey Farwell 2015-02-27 19:01:13 -05:00 committed by Tim Graham
parent f7bf135f62
commit 4fdc7015c0
1 changed files with 4 additions and 2 deletions

View File

@ -472,8 +472,10 @@ class URLNode(Node):
def render(self, context):
from django.core.urlresolvers import reverse, NoReverseMatch
args = [arg.resolve(context) for arg in self.args]
kwargs = dict((smart_text(k, 'ascii'), v.resolve(context))
for k, v in self.kwargs.items())
kwargs = {
smart_text(k, 'ascii'): v.resolve(context)
for k, v in self.kwargs.items()
}
view_name = self.view_name.resolve(context)