From: Guido van Rossum Date: Tue, 11 Apr 2000 15:39:46 +0000 (+0000) Subject: Marc-Andre Lemburg: X-Git-Tag: v1.6a2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=004d64f362eb0bd0d3e2f257b2b7721fecba87af;p=python 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. --- diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index 6d0435a08e..9c05010aef 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h @@ -674,7 +674,7 @@ extern DL_IMPORT(PyObject*) PyUnicode_Split( extern DL_IMPORT(PyObject*) PyUnicode_Splitlines( 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