mirror of https://github.com/django/django.git
Teeny weeny optimization to RegexURLPattern.resolve()
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4587 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
25895623ff
commit
6871a455e2
|
@ -110,7 +110,7 @@ class RegexURLPattern(object):
|
||||||
kwargs = match.groupdict()
|
kwargs = match.groupdict()
|
||||||
if kwargs:
|
if kwargs:
|
||||||
args = ()
|
args = ()
|
||||||
if not kwargs:
|
else:
|
||||||
args = match.groups()
|
args = match.groups()
|
||||||
# In both cases, pass any extra_kwargs as **kwargs.
|
# In both cases, pass any extra_kwargs as **kwargs.
|
||||||
kwargs.update(self.default_args)
|
kwargs.update(self.default_args)
|
||||||
|
|
Loading…
Reference in New Issue