Ticket #19160: 19160-poc.diff

File 19160-poc.diff, 1.0 KB (added by Claude Paroz, 14 years ago)

Proof of concept

  • django/utils/functional.py

    diff --git a/django/utils/functional.py b/django/utils/functional.py
    index 085a8fc..ad64802 100644
    a b  
    11import copy
     2
    23import operator
    34from functools import wraps, update_wrapper
     5
    46import sys
    57
    68from django.utils import six
    def lazy(func, *resultclasses):  
    153155        __hash__ = object.__hash__
    154156
    155157        def __mod__(self, rhs):
     158
     159
     160
     161
     162
     163
     164
    156165            if self._delegate_bytes and not six.PY3:
    157166                return bytes(self) % rhs
    158167            elif self._delegate_text:
Back to Top