From 5d6ca317e52a433b04692e15fff9d161e9fce20f Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sat, 28 Apr 2007 14:47:32 +0200 Subject: [PATCH] [svn] made speedups python2.3/python2.4 compatible --HG-- branch : trunk --- jinja/_speedups.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jinja/_speedups.c b/jinja/_speedups.c index dc71a1f..426476c 100644 --- a/jinja/_speedups.c +++ b/jinja/_speedups.c @@ -402,7 +402,11 @@ static PySequenceMethods BaseContext_as_sequence[] = { }; static PyMappingMethods BaseContext_as_mapping[] = { +#if Py_VERSION_HEX < 0x02050000 + (inquiry)BaseContext_length +#else (lenfunc)BaseContext_length, +#endif (binaryfunc)BaseContext_getitem, (objobjargproc)BaseContext_setitem }; -- 2.26.2