]> granicus.if.org Git - python/commitdiff
Reformat a few docstrings that caused line wraps in help() output.
authorGuido van Rossum <guido@python.org>
Wed, 9 Apr 2003 19:32:45 +0000 (19:32 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 9 Apr 2003 19:32:45 +0000 (19:32 +0000)
Objects/stringobject.c
Objects/unicodeobject.c

index 2613c626e2193efc99b64d00b12fe9595a2b59a5..ac4ad04f393f02cde16d0e9b483a2b8e6741c539 100644 (file)
@@ -2381,9 +2381,9 @@ string_replace(PyStringObject *self, PyObject *args)
 PyDoc_STRVAR(startswith__doc__,
 "S.startswith(prefix[, start[, end]]) -> bool\n\
 \n\
-Return True if S starts with the specified prefix, False otherwise.  With\n\
-optional start, test S beginning at that position.  With optional end, stop\n\
-comparing S at that position.");
+Return True if S starts with the specified prefix, False otherwise.\n\
+With optional start, test S beginning at that position.\n\
+With optional end, stop comparing S at that position.");
 
 static PyObject *
 string_startswith(PyStringObject *self, PyObject *args)
@@ -2432,9 +2432,9 @@ string_startswith(PyStringObject *self, PyObject *args)
 PyDoc_STRVAR(endswith__doc__,
 "S.endswith(suffix[, start[, end]]) -> bool\n\
 \n\
-Return True if S ends with the specified suffix, False otherwise.  With\n\
-optional start, test S beginning at that position.  With optional end, stop\n\
-comparing S at that position.");
+Return True if S ends with the specified suffix, False otherwise.\n\
+With optional start, test S beginning at that position.\n\
+With optional end, stop comparing S at that position.");
 
 static PyObject *
 string_endswith(PyStringObject *self, PyObject *args)
index b167a1d723a88eca732cbbcedadbafea064981be..847580c064390df9f0acb2db934b66008bdab891 100644 (file)
@@ -5693,9 +5693,9 @@ unicode_freelistsize(PyUnicodeObject *self)
 PyDoc_STRVAR(startswith__doc__,
 "S.startswith(prefix[, start[, end]]) -> bool\n\
 \n\
-Return True if S starts with the specified prefix, False otherwise.  With\n\
-optional start, test S beginning at that position.  With optional end, stop\n\
-comparing S at that position.");
+Return True if S starts with the specified prefix, False otherwise.\n\
+With optional start, test S beginning at that position.\n\
+With optional end, stop comparing S at that position.");
 
 static PyObject *
 unicode_startswith(PyUnicodeObject *self,
@@ -5724,9 +5724,9 @@ unicode_startswith(PyUnicodeObject *self,
 PyDoc_STRVAR(endswith__doc__,
 "S.endswith(suffix[, start[, end]]) -> bool\n\
 \n\
-Return True if S ends with the specified suffix, False otherwise.  With\n\
-optional start, test S beginning at that position.  With optional end, stop\n\
-comparing S at that position.");
+Return True if S ends with the specified suffix, False otherwise.\n\
+With optional start, test S beginning at that position.\n\
+With optional end, stop comparing S at that position.");
 
 static PyObject *
 unicode_endswith(PyUnicodeObject *self,