Skip to content

Commit

Permalink
Renamed 'func' argument in django.utils.functional.curry to reduce po…
Browse files Browse the repository at this point in the history
…ssibility 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
  • Loading branch information
adrianholovaty committed Sep 7, 2006
1 parent 5a9839c commit 8aa6a94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django/utils/functional.py
@@ -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:
Expand Down

0 comments on commit 8aa6a94

Please sign in to comment.