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

Skip to content

Commit 004d64f

Browse files
committed
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.
1 parent f0b7b04 commit 004d64f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Include/unicodeobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ extern DL_IMPORT(PyObject*) PyUnicode_Split(
674674

675675
extern DL_IMPORT(PyObject*) PyUnicode_Splitlines(
676676
PyObject *s, /* String to split */
677-
int maxsplit /* Maxsplit count */
677+
int keepends /* If true, line end markers are included */
678678
);
679679

680680
/* Translate a string by applying a character mapping table to it and

0 commit comments

Comments
 (0)