From: Georg Brandl Date: Thu, 30 Mar 2006 12:19:07 +0000 (+0000) Subject: That one was a mistake. X-Git-Tag: v2.5a0~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ecdc0a9f4609e3be57e5f8a54dac2ea8e9607aed;p=thirdparty%2FPython%2Fcpython.git That one was a mistake. --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 9ebefd07d41d..a503d15420a1 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -6380,7 +6380,7 @@ static PyMethodDef unicode_methods[] = { /* Order is according to common usage: often used methods should appear first, since lookup is done sequentially. */ - {"encode", unicode_encode, METH_VARARGS, encode__doc__}, + {"encode", (PyCFunction) unicode_encode, METH_VARARGS, encode__doc__}, {"replace", (PyCFunction) unicode_replace, METH_VARARGS, replace__doc__}, {"split", (PyCFunction) unicode_split, METH_VARARGS, split__doc__}, {"rsplit", (PyCFunction) unicode_rsplit, METH_VARARGS, rsplit__doc__},