summaryrefslogtreecommitdiffstats
path: root/Objects/bytesobject.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-10-29 10:24:45 (GMT)
committerGitHub <noreply@github.com>2017-10-29 10:24:45 (GMT)
commit9ea5a3a45b35d01b602e7e4da4f72b2db407e5c6 (patch)
tree11ee75c2a6cb1780e7aac0137058379498ca376e /Objects/bytesobject.c
parent0f1973d06e2116deafb19bbb9443b138187803c7 (diff)
downloadcpython-9ea5a3a45b35d01b602e7e4da4f72b2db407e5c6.zip
cpython-9ea5a3a45b35d01b602e7e4da4f72b2db407e5c6.tar.gz
cpython-9ea5a3a45b35d01b602e7e4da4f72b2db407e5c6.tar.bz2
[3.6] bpo-20047: Make bytearray methods partition() and rpartition() rejecting (GH-4158) (#4162)
separators that are not bytes-like objects.. (cherry picked from commit a2314283ff87c65e1745a42c2f2b716b1a209128)
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 489062e..4950d01 100644
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -1832,7 +1832,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.
@@ -1842,7 +1842,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,