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

Refs #28909 -- Simplifed code using unpacking generalizations.

This commit is contained in:
Nick Pope
2017-12-22 02:05:23 +00:00
committed by Tim Graham
parent ebc4ee3369
commit f3a98224e6
6 changed files with 19 additions and 28 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), **{**kwargs, **morekwargs})
return _curried_func(*args, *moreargs, **{**kwargs, **morekwargs})
return _curried