1
0
mirror of https://github.com/django/django.git synced 2025-01-08 17:37:20 +00:00

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:
Adrian Holovaty 2006-09-07 18:26:00 +00:00
parent 5a9839c547
commit 8aa6a94e1a

View File

@ -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: