Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e7d5433

Browse files
authored
gh-108915: Removes extra backslashes in str.split docstring (#109044)
1 parent fd5989b commit e7d5433

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Objects/clinic/unicodeobject.c.h

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Objects/unicodeobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12402,7 +12402,7 @@ str.split as unicode_split
1240212402
The separator used to split the string.
1240312403
1240412404
When set to None (the default value), will split on any whitespace
12405-
character (including \\n \\r \\t \\f and spaces) and will discard
12405+
character (including \n \r \t \f and spaces) and will discard
1240612406
empty strings from the result.
1240712407
maxsplit: Py_ssize_t = -1
1240812408
Maximum number of splits (starting from the left).
@@ -12418,7 +12418,7 @@ the regular expression module.
1241812418

1241912419
static PyObject *
1242012420
unicode_split_impl(PyObject *self, PyObject *sep, Py_ssize_t maxsplit)
12421-
/*[clinic end generated code: output=3a65b1db356948dc input=906d953b44efc43b]*/
12421+
/*[clinic end generated code: output=3a65b1db356948dc input=07b9040d98c5fe8d]*/
1242212422
{
1242312423
if (sep == Py_None)
1242412424
return split(self, NULL, maxsplit);

0 commit comments

Comments
 (0)