Edgewall Software

Ticket #324: python-genshi-0.5.1-py2.6.2-length_hint.patch

File python-genshi-0.5.1-py2.6.2-length_hint.patch, 492 bytes (added by lmacken@…, 14 years ago)

python-genshi-0.5.1-py2.6.2-length_hint.patch

  • genshi/template/eval.py

    old new  
    279279        raise UndefinedError(self._name, self._owner)
    280280    __call__ = __getattr__ = __getitem__ = _die
    281281
     282    # Hack around some behavior introduced in Python 2.6.2
     283    # http://genshi.edgewall.org/ticket/324
     284    __length_hint__ = None
     285
    282286
    283287class LookupBase(object):
    284288    """Abstract base class for variable lookup implementations."""