summaryrefslogtreecommitdiff
path: root/django/utils/functional.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2019-02-04 20:22:44 -0500
committerTim Graham <timograham@gmail.com>2019-02-05 13:00:15 -0500
commit3004d7057f2798c348e263d5d902eeb1e20464d5 (patch)
tree609ec03ad04a5942a7504c32252b0753eb6b4adf /django/utils/functional.py
parent9a750cbd5c2a003c5680ab049c39ef3de218f5ce (diff)
downloaddjango-3004d7057f2798c348e263d5d902eeb1e20464d5.tar.gz
Refs #27753 -- Removed django.utils.functional.curry().
Diffstat (limited to 'django/utils/functional.py')
-rw-r--r--django/utils/functional.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/django/utils/functional.py b/django/utils/functional.py
index 6118c108ef..ab0be502ce 100644
--- a/django/utils/functional.py
+++ b/django/utils/functional.py
@@ -4,15 +4,6 @@ import operator
from functools import total_ordering, wraps
-# You can't trivially replace this with `functools.partial` because this binds
-# to classes and returns bound instances, whereas functools.partial (on
-# 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
-
-
class cached_property:
"""
Decorator that converts a method with a single self argument into a