summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/utils/functional.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/django/utils/functional.py b/django/utils/functional.py
index 4220cbc4b6..be5fac23ad 100644
--- a/django/utils/functional.py
+++ b/django/utils/functional.py
@@ -126,8 +126,6 @@ def lazy(func, *resultclasses):
"Cannot call lazy() with both bytes and text return types."
)
- if cls._delegate_bytes:
- cls.__bytes__ = cls.__bytes_cast
@classmethod
def __promise__(cls, method_name):
@@ -140,9 +138,6 @@ def lazy(func, *resultclasses):
return __wrapper__
- def __bytes_cast(self):
- return bytes(func(*self.__args, **self.__kw))
-
def __cast(self):
return func(*self.__args, **self.__kw)