1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Removed unused __bytes_cast_encoded() from proxy class in lazy().

Unused since c716fe8782.
This commit is contained in:
Ran Benita 2019-05-03 12:53:08 +03:00 committed by Mariusz Felisiak
parent cfe563ffaf
commit 0a132de7eb

View File

@ -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()