]> granicus.if.org Git - python/commitdiff
Marc-Andre Lemburg:
authorGuido van Rossum <guido@python.org>
Tue, 11 Apr 2000 15:39:46 +0000 (15:39 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 11 Apr 2000 15:39:46 +0000 (15:39 +0000)
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.

Include/unicodeobject.h

index 6d0435a08ece71a6a0b6147490f56b9c104b150c..9c05010aef9f14831736d3e6a5a423bde467199a 100644 (file)
@@ -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