From c7ba2e3cbb478d5337dc160610e4b05d062e8a03 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Fri, 3 May 2019 13:00:37 +0300 Subject: [PATCH] Removed unnecessary branch in __mod__() from proxy class in lazy(). Unnecessary since c716fe87821df00f9f03ecc761c914d1682591a2 and 7b2f2e74adb36a4334e83130f6abc2f79d395235. --- django/utils/functional.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/django/utils/functional.py b/django/utils/functional.py index 2771851eae..4220cbc4b6 100644 --- a/django/utils/functional.py +++ b/django/utils/functional.py @@ -165,8 +165,6 @@ def lazy(func, *resultclasses): return hash(self.__cast()) def __mod__(self, rhs): - if self._delegate_text: - return str(self) % rhs return self.__cast() % rhs def __add__(self, other):