Skip to content

Commit cc1a4f0

Browse files
committed
Fixed #4823 -- Fixed a Python 2.3 incompatibility from [5636] (it was even
demonstrated by existing tests, so I really screwed this up). git-svn-id: http://code.djangoproject.com/svn/django/trunk@5641 bcc190cf-cafb-0310-a4f2-bffc1f526a37
1 parent 0927ab9 commit cc1a4f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

django/core/urlresolvers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,8 @@ def resolve(self, path):
231231
if sub_match:
232232
sub_match_dict = dict([(smart_str(k), v) for k, v in match.groupdict().items()])
233233
sub_match_dict.update(self.default_kwargs)
234-
sub_match_dict.update([(smart_str(k), v) for k, v in sub_match[2].items()])
234+
for k, v in sub_match[2].iteritems():
235+
sub_match_dict[smart_str(k)] = v
235236
return sub_match[0], sub_match[1], sub_match_dict
236237
tried.append(pattern.regex.pattern)
237238
raise Resolver404, {'tried': tried, 'path': new_path}

0 commit comments

Comments
 (0)