]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.7] bpo-38409: Fix grammar in str.strip() docstring (GH-16682) (GH-16686)
authorZachary Ware <zachary.ware@gmail.com>
Wed, 9 Oct 2019 21:56:07 +0000 (16:56 -0500)
committerGitHub <noreply@github.com>
Wed, 9 Oct 2019 21:56:07 +0000 (16:56 -0500)
(cherry picked from commit 09895c27cd8ff60563a794016e8c099bc897cc74)

Objects/clinic/unicodeobject.c.h
Objects/unicodeobject.c

index 8072516a8a36d142f1408e065cc626006460e4e2..2b744b622c85a3e98122f21138c866806f50f8f5 100644 (file)
@@ -484,7 +484,7 @@ PyDoc_STRVAR(unicode_strip__doc__,
 "strip($self, chars=None, /)\n"
 "--\n"
 "\n"
-"Return a copy of the string with leading and trailing whitespace remove.\n"
+"Return a copy of the string with leading and trailing whitespace removed.\n"
 "\n"
 "If chars is given and not None, remove characters in chars instead.");
 
@@ -951,4 +951,4 @@ unicode_sizeof(PyObject *self, PyObject *Py_UNUSED(ignored))
 {
     return unicode_sizeof_impl(self);
 }
-/*[clinic end generated code: output=561c88c912b8fe3b input=a9049054013a1b77]*/
+/*[clinic end generated code: output=49bf50c732b9b53b input=a9049054013a1b77]*/
index 9e0731bf2ba2fa7bed6fa6a3fe29f433515b37e6..d7e5a9d9cc98f2e60c92b7386c26bf2e37c11510 100644 (file)
@@ -12474,14 +12474,14 @@ str.strip as unicode_strip
     chars: object = None
     /
 
-Return a copy of the string with leading and trailing whitespace remove.
+Return a copy of the string with leading and trailing whitespace removed.
 
 If chars is given and not None, remove characters in chars instead.
 [clinic start generated code]*/
 
 static PyObject *
 unicode_strip_impl(PyObject *self, PyObject *chars)
-/*[clinic end generated code: output=ca19018454345d57 input=eefe24a1059c352b]*/
+/*[clinic end generated code: output=ca19018454345d57 input=385289c6f423b954]*/
 {
     return do_argstrip(self, BOTHSTRIP, chars);
 }