summaryrefslogtreecommitdiff
path: root/django/utils/functional.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-12-31 09:52:31 -0500
committerTim Graham <timograham@gmail.com>2017-01-17 20:52:02 -0500
commit9d304b26cf2ce071a682bf68a29dee04d0e4cfdb (patch)
treead8dc77522035dc2be7edc11622b33e58ecb23ed /django/utils/functional.py
parent7e63e84572f076c3cb2988d753a334e204116ddb (diff)
Refs #20223 -- Removed deprecated django.utils.functional.allow_lazy().
Diffstat (limited to 'django/utils/functional.py')
-rw-r--r--django/utils/functional.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/django/utils/functional.py b/django/utils/functional.py
index 7d5b7feea5..794f31047c 100644
--- a/django/utils/functional.py
+++ b/django/utils/functional.py
@@ -1,10 +1,8 @@
import copy
import operator
-import warnings
from functools import total_ordering, wraps
from django.utils import six
-from django.utils.deprecation import RemovedInDjango20Warning
# You can't trivially replace this with `functools.partial` because this binds
@@ -189,14 +187,6 @@ def lazystr(text):
return lazy(force_text, six.text_type)(text)
-def allow_lazy(func, *resultclasses):
- warnings.warn(
- "django.utils.functional.allow_lazy() is deprecated in favor of "
- "django.utils.functional.keep_lazy()",
- RemovedInDjango20Warning, 2)
- return keep_lazy(*resultclasses)(func)
-
-
def keep_lazy(*resultclasses):
"""
A decorator that allows a function to be called with one or more lazy