Skip to content

Commit 4796f63

Browse files
committed
Merged revisions 82573 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82573 | senthil.kumaran | 2010-07-05 17:30:56 +0530 (Mon, 05 Jul 2010) | 3 lines Fix the docstrings of the capitalize method. ........
1 parent c2b433f commit 4796f63

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Objects/bytes_methods.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@ _Py_bytes_title(char *result, char *s, Py_ssize_t len)
332332
PyDoc_STRVAR_shared(_Py_capitalize__doc__,
333333
"B.capitalize() -> copy of B\n\
334334
\n\
335-
Return a copy of B with only its first character capitalized (ASCII).");
335+
Return a copy of B with only its first character capitalized (ASCII)\n\
336+
and the rest lower-cased.");
336337

337338
void
338339
_Py_bytes_capitalize(char *result, char *s, Py_ssize_t len)

Objects/unicodeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6766,7 +6766,7 @@ PyDoc_STRVAR(capitalize__doc__,
67666766
"S.capitalize() -> str\n\
67676767
\n\
67686768
Return a capitalized version of S, i.e. make the first character\n\
6769-
have upper case.");
6769+
have upper case and the rest lower case.");
67706770

67716771
static PyObject*
67726772
unicode_capitalize(PyUnicodeObject *self)

0 commit comments

Comments
 (0)