diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-07-10 12:02:06 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-07-10 12:02:06 +0000 |
| commit | cc1a4f031c5cefa15bb06986254e696ad5734fbb (patch) | |
| tree | b2b494704998288ef1d7e864242c3ab8229f440a | |
| parent | 0927ab92b20b9852dc1cef6c81453e2ee95bd01b (diff) | |
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
| -rw-r--r-- | django/core/urlresolvers.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/django/core/urlresolvers.py b/django/core/urlresolvers.py index 7e4f4c8431..8e2af52464 100644 --- a/django/core/urlresolvers.py +++ b/django/core/urlresolvers.py @@ -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} |
