]> granicus.if.org Git - python/commitdiff
bpo-38409: Fix grammar in str.strip() docstring (GH-16682)
authorZachary Ware <zachary.ware@gmail.com>
Wed, 9 Oct 2019 21:09:00 +0000 (16:09 -0500)
committerGitHub <noreply@github.com>
Wed, 9 Oct 2019 21:09:00 +0000 (16:09 -0500)
Objects/clinic/unicodeobject.c.h
Objects/unicodeobject.c

index c7d6edb5fd488d79cd4dffd7bc177707694d8527..0d134064bab0917aaff72bc5dd8353487c4e988d 100644 (file)
@@ -582,7 +582,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.");
 
@@ -1232,4 +1232,4 @@ unicode_sizeof(PyObject *self, PyObject *Py_UNUSED(ignored))
 {
     return unicode_sizeof_impl(self);
 }
-/*[clinic end generated code: output=5e15747f78f18329 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=e4ed33400979c7e8 input=a9049054013a1b77]*/
index 8d442fb6d82b8b6b591ce472a1c3bff51b3bc1f1..2d60627b19193bceb6949af895a58ad78f569f50 100644 (file)
@@ -12544,14 +12544,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);
 }