mirror of https://github.com/python/cpython
Improve tooltips for splitlines() by showing that the default for keepends is False.
This commit is contained in:
parent
4fbf7c61fe
commit
aad5b02e62
|
@ -2649,7 +2649,7 @@ bytearray_join(PyByteArrayObject *self, PyObject *it)
|
|||
}
|
||||
|
||||
PyDoc_STRVAR(splitlines__doc__,
|
||||
"B.splitlines([keepends]) -> list of lines\n\
|
||||
"B.splitlines(keepends=False) -> list of lines\n\
|
||||
\n\
|
||||
Return a list of the lines in B, breaking at line boundaries.\n\
|
||||
Line breaks are not included in the resulting list unless keepends\n\
|
||||
|
|
|
@ -3545,7 +3545,7 @@ string_istitle(PyStringObject *self, PyObject *uncased)
|
|||
|
||||
|
||||
PyDoc_STRVAR(splitlines__doc__,
|
||||
"S.splitlines([keepends]) -> list of strings\n\
|
||||
"S.splitlines(keepends=False) -> list of strings\n\
|
||||
\n\
|
||||
Return a list of the lines in S, breaking at line boundaries.\n\
|
||||
Line breaks are not included in the resulting list unless keepends\n\
|
||||
|
|
|
@ -7521,7 +7521,7 @@ unicode_rsplit(PyUnicodeObject *self, PyObject *args)
|
|||
}
|
||||
|
||||
PyDoc_STRVAR(splitlines__doc__,
|
||||
"S.splitlines([keepends]) -> list of strings\n\
|
||||
"S.splitlines(keepends=False) -> list of strings\n\
|
||||
\n\
|
||||
Return a list of the lines in S, breaking at line boundaries.\n\
|
||||
Line breaks are not included in the resulting list unless keepends\n\
|
||||
|
|
Loading…
Reference in New Issue