From: Armin Ronacher Date: Sat, 28 Apr 2007 12:47:32 +0000 (+0200) Subject: [svn] made speedups python2.3/python2.4 compatible X-Git-Tag: 2.0rc1~338 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5d6ca317e52a433b04692e15fff9d161e9fce20f;p=jinja2.git [svn] made speedups python2.3/python2.4 compatible --HG-- branch : trunk --- 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 };