Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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: http://code.djangoproject.com/svn/django/trunk@3735 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 8aa6a94e1a6a457b3a62377ff68b64421cc4596f 1 parent 5a9839c
@adrianholovaty adrianholovaty authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/utils/functional.py
View
4 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:
Please sign in to comment.
Something went wrong with that request. Please try again.