summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-03-30 12:19:07 (GMT)
committerGeorg Brandl <georg@python.org>2006-03-30 12:19:07 (GMT)
commitecdc0a9f4609e3be57e5f8a54dac2ea8e9607aed (patch)
treeb32a257e0ab6b720fb01430bfe1487485d10e220
parentd37ac69ee5abfbdcf069273f9358d581e196bc22 (diff)
downloadcpython-ecdc0a9f4609e3be57e5f8a54dac2ea8e9607aed.zip
cpython-ecdc0a9f4609e3be57e5f8a54dac2ea8e9607aed.tar.gz
cpython-ecdc0a9f4609e3be57e5f8a54dac2ea8e9607aed.tar.bz2
That one was a mistake.
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 9ebefd0..a503d15 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__},