diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-09-01 19:52:00 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-09-01 19:52:00 (GMT) |
commit | 3571fbfed7c49895a03b8c0de1fa47a9de112da9 (patch) | |
tree | 296f4aa5af122683ce6e20d0da17d7cc8fe48306 /Objects | |
parent | aa5f873980994d1a216bcbe3d276d6a0b7d4b1cc (diff) | |
download | cpython-3571fbfed7c49895a03b8c0de1fa47a9de112da9.zip cpython-3571fbfed7c49895a03b8c0de1fa47a9de112da9.tar.gz cpython-3571fbfed7c49895a03b8c0de1fa47a9de112da9.tar.bz2 |
Issue #3751: str.rpartition would perform a left-partition when called with
a unicode argument.
will backport.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/stringobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c index 5bf4add..b9a70a0 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -1638,7 +1638,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; |