]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
That one was a mistake.
authorGeorg Brandl <georg@python.org>
Thu, 30 Mar 2006 12:19:07 +0000 (12:19 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 30 Mar 2006 12:19:07 +0000 (12:19 +0000)
Objects/unicodeobject.c

index 9ebefd07d41de7c080aaa452c87a44b18642c215..a503d15420a1dc37adebc7e1277e908d2a6eb558 100644 (file)
@@ -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__},