Renamed 'func' argument in django.utils.functional.curry to reduce possibility that it will clash with a keyword argument name. Thanks for pointing this out, Michael Spencer
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3735 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
5a9839c547
commit
8aa6a94e1a
|
@ -1,6 +1,6 @@
|
|||
def curry(func, *args, **kwargs):
|
||||
def curry(_curried_func, *args, **kwargs):
|
||||
def _curried(*moreargs, **morekwargs):
|
||||
return func(*(args+moreargs), **dict(kwargs, **morekwargs))
|
||||
return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))
|
||||
return _curried
|
||||
|
||||
class Promise:
|
||||
|
|
Loading…
Reference in New Issue