Mercurial > cpython-lru_cache-weakref
diff Python/bltinmodule.c @ 12386:32e9d0e78935 legacy-trunk
When refering to Unicode characters in exception messages and
docstrings, the documentation guidelines call for "Unicode", not
"unicode". Comply.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Thu, 13 Apr 2000 02:42:50 +0000 |
| parents | aa013f2cf80b |
| children | 9a841d68453a |
line wrap: on
line diff
--- a/Python/bltinmodule.c Wed Apr 12 22:04:01 2000 +0000 +++ b/Python/bltinmodule.c Thu Apr 13 02:42:50 2000 +0000 @@ -192,7 +192,7 @@ static char unicode_doc[] = "unicode(string [, encoding[, errors]]) -> object\n\ \n\ -Creates a new unicode object from the given encoded string.\n\ +Creates a new Unicode object from the given encoded string.\n\ encoding defaults to 'utf-8' and errors, defining the error handling,\n\ to 'strict'."; @@ -368,9 +368,9 @@ } static char unichr_doc[] = -"unichr(i) -> unicode character\n\ +"unichr(i) -> Unicode character\n\ \n\ -Return a unicode string of one character with ordinal i; 0 <= i < 65536."; +Return a Unicode string of one character with ordinal i; 0 <= i < 65536."; static PyObject * @@ -1657,7 +1657,7 @@ ord = (long)*PyUnicode_AS_UNICODE(obj); } else { PyErr_Format(PyExc_TypeError, - "expected string or unicode character, " \ + "expected string or Unicode character, " \ "%.200s found", obj->ob_type->tp_name); return NULL; } @@ -1673,7 +1673,7 @@ static char ord_doc[] = "ord(c) -> integer\n\ \n\ -Return the integer ordinal of a one character [unicode] string."; +Return the integer ordinal of a one character string."; static PyObject *
