From 4fdc7015c0d0849e391aa22da46b62a8fa4de27c Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Fri, 27 Feb 2015 19:01:13 -0500 Subject: [PATCH] Used dict comprehension in URLNode 4468c08d7 replaced a lot of the old `dict()` comprehensions with the new style, but missed this one. --- django/template/defaulttags.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/django/template/defaulttags.py b/django/template/defaulttags.py index fc8baf9611..26ff986b6d 100644 --- a/django/template/defaulttags.py +++ b/django/template/defaulttags.py @@ -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)