Browse files

Renamed 'func' argument in django.utils.functional.curry to reduce po…

…ssibility that it will clash with a keyword argument name. Thanks for pointing this out, Michael Spencer

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 5a9839c commit 8aa6a94e1a6a457b3a62377ff68b64421cc4596f @adrianholovaty adrianholovaty committed Sep 7, 2006
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/utils/
@@ -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:

0 comments on commit 8aa6a94

Please sign in to comment.