mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Marc-Andre Lemburg:
Changed PyUnicode_Splitlines() maxsplit argument to keepends. The maxsplit functionality was replaced by the keepends functionality which allows keeping the line end markers together with the string.
This commit is contained in:
parent
f0b7b04ae8
commit
004d64f362
1 changed files with 1 additions and 1 deletions
|
@ -674,7 +674,7 @@ extern DL_IMPORT(PyObject*) PyUnicode_Split(
|
||||||
|
|
||||||
extern DL_IMPORT(PyObject*) PyUnicode_Splitlines(
|
extern DL_IMPORT(PyObject*) PyUnicode_Splitlines(
|
||||||
PyObject *s, /* String to split */
|
PyObject *s, /* String to split */
|
||||||
int maxsplit /* Maxsplit count */
|
int keepends /* If true, line end markers are included */
|
||||||
);
|
);
|
||||||
|
|
||||||
/* Translate a string by applying a character mapping table to it and
|
/* Translate a string by applying a character mapping table to it and
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue