summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-07-05 12:00:56 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2010-07-05 12:00:56 (GMT)
commite51ee8a5bc2c0465c4058ba9b97d3c27a4624c16 (patch)
treeae36df14258568c729e0a7e585353c195675f4c8 /Objects
parentfa8979867f6f122103aedbee5d31e97de976cea3 (diff)
downloadcpython-e51ee8a5bc2c0465c4058ba9b97d3c27a4624c16.zip
cpython-e51ee8a5bc2c0465c4058ba9b97d3c27a4624c16.tar.gz
cpython-e51ee8a5bc2c0465c4058ba9b97d3c27a4624c16.tar.bz2
Fix the docstrings of the capitalize method.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/bytes_methods.c3
-rw-r--r--Objects/unicodeobject.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/Objects/bytes_methods.c b/Objects/bytes_methods.c
index 215a1fa..b41b3d9 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 dba3d36..6270e9b 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -6705,7 +6705,7 @@ PyDoc_STRVAR(capitalize__doc__,
"S.capitalize() -> str\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)