summaryrefslogtreecommitdiff
path: root/Objects/stringobject.c
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-09-01 20:05:08 +0000
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-09-01 20:05:08 +0000
commitafa0d58a2d55fa157482e2006028688db6553f90 (patch)
treeec5c92dab493ce55e8fcd2099428b5089387127e /Objects/stringobject.c
parent50b1c4920be53f5155fce046617bb700fd02574f (diff)
downloadcpython-git-afa0d58a2d55fa157482e2006028688db6553f90.tar.gz
Issue #3751: str.rpartition would perform a left-partition when called with
a unicode argument. Backport of r66119
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r--Objects/stringobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index 60d3e8ae9d..85883431ee 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -1595,7 +1595,7 @@ string_rpartition(PyStringObject *self, PyObject *sep_obj)
}
#ifdef Py_USING_UNICODE
else if (PyUnicode_Check(sep_obj))
- return PyUnicode_Partition((PyObject *) self, sep_obj);
+ return PyUnicode_RPartition((PyObject *) self, sep_obj);
#endif
else if (PyObject_AsCharBuffer(sep_obj, &sep, &sep_len))
return NULL;