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
This commit is contained in:
parent
0927ab92b2
commit
cc1a4f031c
|
@ -231,7 +231,8 @@ class RegexURLResolver(object):
|
|||
if sub_match:
|
||||
sub_match_dict = dict([(smart_str(k), v) for k, v in match.groupdict().items()])
|
||||
sub_match_dict.update(self.default_kwargs)
|
||||
sub_match_dict.update([(smart_str(k), v) for k, v in sub_match[2].items()])
|
||||
for k, v in sub_match[2].iteritems():
|
||||
sub_match_dict[smart_str(k)] = v
|
||||
return sub_match[0], sub_match[1], sub_match_dict
|
||||
tried.append(pattern.regex.pattern)
|
||||
raise Resolver404, {'tried': tried, 'path': new_path}
|
||||
|
|
Loading…
Reference in New Issue