From 0a132de7ebe1e2679ff7d7f6b6e1ad920828dd90 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Fri, 3 May 2019 12:53:08 +0300 Subject: [PATCH] Removed unused __bytes_cast_encoded() from proxy class in lazy(). Unused since c716fe87821df00f9f03ecc761c914d1682591a2. --- django/utils/functional.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/django/utils/functional.py b/django/utils/functional.py index 9b059ee704..236d2ca6e3 100644 --- a/django/utils/functional.py +++ b/django/utils/functional.py @@ -147,9 +147,6 @@ def lazy(func, *resultclasses): def __bytes_cast(self): return bytes(func(*self.__args, **self.__kw)) - def __bytes_cast_encoded(self): - return func(*self.__args, **self.__kw).encode() - def __cast(self): if self._delegate_bytes: return self.__bytes_cast()