# HG changeset patch # User cmlenz # Date 1271365836 0 # Node ID abfabaea906f608ca83bc4485ac100ce70f82267 # Parent 8747234921b68dd40e9ef05fec298896d0bc7158 Apply patch from #324 for Python 2.6.2 compatibility fix. diff --git a/genshi/template/eval.py b/genshi/template/eval.py --- a/genshi/template/eval.py +++ b/genshi/template/eval.py @@ -277,6 +277,10 @@ raise UndefinedError(self._name, self._owner) __call__ = __getattr__ = __getitem__ = _die + # Hack around some behavior introduced in Python 2.6.2 + # http://genshi.edgewall.org/ticket/324 + __length_hint__ = None + class LookupBase(object): """Abstract base class for variable lookup implementations."""