summaryrefslogtreecommitdiffstats
path: root/Objects/bytesobject.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-10-28 23:11:54 (GMT)
committerGitHub <noreply@github.com>2017-10-28 23:11:54 (GMT)
commita2314283ff87c65e1745a42c2f2b716b1a209128 (patch)
treeb1b1287aeea750c8694673939ec72b469c19cc59 /Objects/bytesobject.c
parent5a4bbcd479ce86f68bbe12bc8c16e3447f32e13a (diff)
downloadcpython-a2314283ff87c65e1745a42c2f2b716b1a209128.zip
cpython-a2314283ff87c65e1745a42c2f2b716b1a209128.tar.gz
cpython-a2314283ff87c65e1745a42c2f2b716b1a209128.tar.bz2
bpo-20047: Make bytearray methods partition() and rpartition() rejecting (#4158)
separators that are not bytes-like objects.
Diffstat (limited to 'Objects/bytesobject.c')
-rw-r--r--Objects/bytesobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
index 48b6501..7ba90aa 100644
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -1834,7 +1834,7 @@ bytes.rpartition
Partition the bytes into three parts using the given separator.
-This will search for the separator sep in the bytes, starting and the end. If
+This will search for the separator sep in the bytes, starting at the end. If
the separator is found, returns a 3-tuple containing the part before the
separator, the separator itself, and the part after it.
@@ -1844,7 +1844,7 @@ objects and the original bytes object.
static PyObject *
bytes_rpartition_impl(PyBytesObject *self, Py_buffer *sep)
-/*[clinic end generated code: output=191b114cbb028e50 input=67f689e63a62d478]*/
+/*[clinic end generated code: output=191b114cbb028e50 input=d78db010c8cfdbe1]*/
{
return stringlib_rpartition(
(PyObject*) self,