diff options
| author | Andrew M. Kuchling <amk@amk.ca> | 2008-10-04 01:05:56 +0000 |
|---|---|---|
| committer | Andrew M. Kuchling <amk@amk.ca> | 2008-10-04 01:05:56 +0000 |
| commit | efeb43eb318dd6d64a38e47af4bb29846aa05f63 (patch) | |
| tree | 8d9951daad971f1a771e66d6580331a58876ac43 /Objects/unicodeobject.c | |
| parent | d810cdf8491632089733ba260a29a1e0693c7b6b (diff) | |
| download | cpython-git-efeb43eb318dd6d64a38e47af4bb29846aa05f63.tar.gz | |
Docstring change for *partition: use same tense as other docstrings.
Hyphenate left- and right-justified.
Fix 'registerd' typo
Diffstat (limited to 'Objects/unicodeobject.c')
| -rw-r--r-- | Objects/unicodeobject.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index f8601d87ff..17424256a2 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -7070,7 +7070,7 @@ unicode_length(PyUnicodeObject *self) PyDoc_STRVAR(ljust__doc__, "S.ljust(width[, fillchar]) -> int\n\ \n\ -Return S left justified in a Unicode string of length width. Padding is\n\ +Return S left-justified in a Unicode string of length width. Padding is\n\ done using the specified fill character (default is a space)."); static PyObject * @@ -7456,7 +7456,7 @@ unicode_rindex(PyUnicodeObject *self, PyObject *args) PyDoc_STRVAR(rjust__doc__, "S.rjust(width[, fillchar]) -> unicode\n\ \n\ -Return S right justified in a Unicode string of length width. Padding is\n\ +Return S right-justified in a Unicode string of length width. Padding is\n\ done using the specified fill character (default is a space)."); static PyObject * @@ -7606,9 +7606,9 @@ PyUnicode_RPartition(PyObject *str_in, PyObject *sep_in) PyDoc_STRVAR(partition__doc__, "S.partition(sep) -> (head, sep, tail)\n\ \n\ -Searches for the separator sep in S, and returns the part before it,\n\ +Search for the separator sep in S, and return the part before it,\n\ the separator itself, and the part after it. If the separator is not\n\ -found, returns S and two empty strings."); +found, return S and two empty strings."); static PyObject* unicode_partition(PyUnicodeObject *self, PyObject *separator) @@ -7619,9 +7619,9 @@ unicode_partition(PyUnicodeObject *self, PyObject *separator) PyDoc_STRVAR(rpartition__doc__, "S.rpartition(sep) -> (tail, sep, head)\n\ \n\ -Searches for the separator sep in S, starting at the end of S, and returns\n\ +Search for the separator sep in S, starting at the end of S, and return\n\ the part before it, the separator itself, and the part after it. If the\n\ -separator is not found, returns two empty strings and S."); +separator is not found, return two empty strings and S."); static PyObject* unicode_rpartition(PyUnicodeObject *self, PyObject *separator) |
