diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-07-05 12:04:07 +0000 |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-07-05 12:04:07 +0000 |
commit | 5261b10556d11b206d878b8382016fbfcc703927 (patch) | |
tree | 755896377d471b908b5885c437f31a462454fe03 | |
parent | ca92a60e2ee11d3cc6fee33dd3b0f4bf4ce1d987 (diff) | |
download | cpython-git-5261b10556d11b206d878b8382016fbfcc703927.tar.gz |
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.
........
-rw-r--r-- | Objects/bytes_methods.c | 3 | ||||
-rw-r--r-- | Objects/unicodeobject.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Objects/bytes_methods.c b/Objects/bytes_methods.c index a5d0c5bd8a..1406ac11ca 100644 --- a/Objects/bytes_methods.c +++ b/Objects/bytes_methods.c @@ -332,7 +332,8 @@ _Py_bytes_title(char *result, char *s, Py_ssize_t len) PyDoc_STRVAR_shared(_Py_capitalize__doc__, "B.capitalize() -> copy of B\n\ \n\ -Return a copy of B with only its first character capitalized (ASCII)."); +Return a copy of B with only its first character capitalized (ASCII)\n\ +and the rest lower-cased."); void _Py_bytes_capitalize(char *result, char *s, Py_ssize_t len) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 8b3b861bee..b182927911 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -5938,7 +5938,7 @@ PyDoc_STRVAR(capitalize__doc__, "S.capitalize() -> unicode\n\ \n\ Return a capitalized version of S, i.e. make the first character\n\ -have upper case."); +have upper case and the rest lower case."); static PyObject* unicode_capitalize(PyUnicodeObject *self) |