1
0
mirror of https://github.com/django/django.git synced 2025-10-24 22:26:08 +00:00

Fixed #28909 -- Simplified code using tuple/list/set/dict unpacking.

This commit is contained in:
Nick Pope
2017-12-11 12:08:45 +00:00
committed by Tim Graham
parent a9e5ac823d
commit d13a9e44de
61 changed files with 511 additions and 564 deletions

View File

@@ -9,7 +9,7 @@ from functools import total_ordering, wraps
# CPython) is a type and its instances don't bind.
def curry(_curried_func, *args, **kwargs):
def _curried(*moreargs, **morekwargs):
return _curried_func(*(args + moreargs), **dict(kwargs, **morekwargs))
return _curried_func(*(args + moreargs), **{**kwargs, **morekwargs})
return _curried