Guido van Rossum  committed 214303d

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.

  • Participants
  • Parent commits 429a37f
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Include/unicodeobject.h

 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