summaryrefslogtreecommitdiff
path: root/django/utils/functional.py
diff options
context:
space:
mode:
authorAdam Chainz <me@adamj.eu>2016-11-30 00:01:12 +0000
committerTim Graham <timograham@gmail.com>2016-11-29 19:01:12 -0500
commit71609a5b903ace05a437eb3f89859e9d35a88203 (patch)
tree44509d6dbc586b9d0d79e820254b55e3df449189 /django/utils/functional.py
parent05d2c5a66dd72c26e5221855e08834a66c844399 (diff)
Fixed #27555 -- Removed django.utils.functional.lazy_property.
Diffstat (limited to 'django/utils/functional.py')
-rw-r--r--django/utils/functional.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/django/utils/functional.py b/django/utils/functional.py
index f86271b28d..7d5b7feea5 100644
--- a/django/utils/functional.py
+++ b/django/utils/functional.py
@@ -412,27 +412,6 @@ class SimpleLazyObject(LazyObject):
return copy.deepcopy(self._wrapped, memo)
-class lazy_property(property):
- """
- A property that works with subclasses by wrapping the decorated
- functions of the base class.
- """
- def __new__(cls, fget=None, fset=None, fdel=None, doc=None):
- if fget is not None:
- @wraps(fget)
- def fget(instance, instance_type=None, name=fget.__name__):
- return getattr(instance, name)()
- if fset is not None:
- @wraps(fset)
- def fset(instance, value, name=fset.__name__):
- return getattr(instance, name)(value)
- if fdel is not None:
- @wraps(fdel)
- def fdel(instance, name=fdel.__name__):
- return getattr(instance, name)()
- return property(fget, fset, fdel, doc)
-
-
def partition(predicate, values):
"""
Splits the values into two sets, based on the return value of the function