]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-108915: Removes extra backslashes in str.split docstring (#109044)
authorDaniel Weiss <134341009+justdan6@users.noreply.github.com>
Thu, 7 Sep 2023 05:33:51 +0000 (23:33 -0600)
committerGitHub <noreply@github.com>
Thu, 7 Sep 2023 05:33:51 +0000 (05:33 +0000)
Objects/clinic/unicodeobject.c.h
Objects/unicodeobject.c

index cfee9b8aa1fa8c1d60077baf60339a87a7669773..42b8a3c69cad8a1748260951f6e635ee3388779b 100644 (file)
@@ -950,7 +950,7 @@ PyDoc_STRVAR(unicode_split__doc__,
 "    The separator used to split the string.\n"
 "\n"
 "    When set to None (the default value), will split on any whitespace\n"
-"    character (including \\\\n \\\\r \\\\t \\\\f and spaces) and will discard\n"
+"    character (including \\n \\r \\t \\f and spaces) and will discard\n"
 "    empty strings from the result.\n"
 "  maxsplit\n"
 "    Maximum number of splits (starting from the left).\n"
@@ -1074,7 +1074,7 @@ PyDoc_STRVAR(unicode_rsplit__doc__,
 "    The separator used to split the string.\n"
 "\n"
 "    When set to None (the default value), will split on any whitespace\n"
-"    character (including \\\\n \\\\r \\\\t \\\\f and spaces) and will discard\n"
+"    character (including \\n \\r \\t \\f and spaces) and will discard\n"
 "    empty strings from the result.\n"
 "  maxsplit\n"
 "    Maximum number of splits (starting from the left).\n"
@@ -1504,4 +1504,4 @@ skip_optional_pos:
 exit:
     return return_value;
 }
-/*[clinic end generated code: output=8d08dfbb814c4393 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=4acdcfdc93f2a0f6 input=a9049054013a1b77]*/
index 045b48c526a9585cbaad2544b47d5d80265cc918..4b87bf8e37aa94cdba4dd20052240f0800e18759 100644 (file)
@@ -12402,7 +12402,7 @@ str.split as unicode_split
         The separator used to split the string.
 
         When set to None (the default value), will split on any whitespace
-        character (including \\n \\r \\t \\f and spaces) and will discard
+        character (including \n \r \t \f and spaces) and will discard
         empty strings from the result.
     maxsplit: Py_ssize_t = -1
         Maximum number of splits (starting from the left).
@@ -12418,7 +12418,7 @@ the regular expression module.
 
 static PyObject *
 unicode_split_impl(PyObject *self, PyObject *sep, Py_ssize_t maxsplit)
-/*[clinic end generated code: output=3a65b1db356948dc input=906d953b44efc43b]*/
+/*[clinic end generated code: output=3a65b1db356948dc input=07b9040d98c5fe8d]*/
 {
     if (sep == Py_None)
         return split(self, NULL, maxsplit);