Ticket #20017: jython_lazy_fix.diff
File jython_lazy_fix.diff, 519 bytes (added by , 12 years ago) |
---|
-
django/utils/functional.py
diff --git a/django/utils/functional.py b/django/utils/functional.py index d740acf..647668d 100644
a b def lazy(func, *resultclasses): 108 108 cls.__str__ = cls.__text_cast 109 109 else: 110 110 cls.__unicode__ = cls.__text_cast 111 cls.__str__ = cls.__text_cast 111 112 elif cls._delegate_bytes: 112 113 if six.PY3: 113 114 cls.__bytes__ = cls.__bytes_cast