Ticket #19160: 19160-poc.diff
| File 19160-poc.diff, 1.0 KB (added by , 14 years ago) |
|---|
-
django/utils/functional.py
diff --git a/django/utils/functional.py b/django/utils/functional.py index 085a8fc..ad64802 100644
a b 1 1 import copy 2 2 3 import operator 3 4 from functools import wraps, update_wrapper 5 4 6 import sys 5 7 6 8 from django.utils import six … … def lazy(func, *resultclasses): 153 155 __hash__ = object.__hash__ 154 156 155 157 def __mod__(self, rhs): 158 159 160 161 162 163 164 156 165 if self._delegate_bytes and not six.PY3: 157 166 return bytes(self) % rhs 158 167 elif self._delegate_text: