diff options
author | Shantanu <12621235+hauntsaninja@users.noreply.github.com> | 2023-09-08 13:19:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-08 13:19:38 (GMT) |
commit | 2979cee1af755eac6eab02acbe7d90048ba011f4 (patch) | |
tree | 1f5636a0419db23208bd7a6186964b10b6ab83b7 /Objects/unicodeobject.c | |
parent | de0202e937ead659d97f0b243fda3db48720c79f (diff) | |
download | cpython-2979cee1af755eac6eab02acbe7d90048ba011f4.zip cpython-2979cee1af755eac6eab02acbe7d90048ba011f4.tar.gz cpython-2979cee1af755eac6eab02acbe7d90048ba011f4.tar.bz2 |
[3.12] gh-108915: Removes extra backslashes in str.split docstring (GH-109044). (#109061)
* [3.12] gh-108915: Removes extra backslashes in str.split docstring (GH-109044).
(cherry picked from commit e7d5433f944a5725aa82595f9251abfc8a63d333)
Co-authored-by: Daniel Weiss <134341009+justdan6@users.noreply.github.com>
* re-clinic
---------
Co-authored-by: Daniel Weiss <134341009+justdan6@users.noreply.github.com>
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 3fbc2d2..26aa139 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -12361,7 +12361,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). @@ -12377,7 +12377,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); |