1
0
mirror of https://github.com/django/django.git synced 2024-12-25 18:46:22 +00:00

Fixed grammar error in utils/functional.py from [15940]

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16005 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2011-04-02 21:45:56 +00:00
parent cca232c234
commit eaf5554865

View File

@ -3,7 +3,7 @@ from functools import wraps, update_wrapper
# You can't trivially replace this `functools.partial` because this binds to # You can't trivially replace this `functools.partial` because this binds to
# classes and returns bound instances, whereas functools.partial (on CPython) # classes and returns bound instances, whereas functools.partial (on CPython)
# is a type and it's instances don't bind. # is a type and its instances don't bind.
def curry(_curried_func, *args, **kwargs): def curry(_curried_func, *args, **kwargs):
def _curried(*moreargs, **morekwargs): def _curried(*moreargs, **morekwargs):
return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs)) return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))