summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-04-13 02:42:50 (GMT)
committerFred Drake <fdrake@acm.org>2000-04-13 02:42:50 (GMT)
commit078b24f000d44a0827e1555f8cb2b525923da593 (patch)
tree88602903d5d172f384a5ac81ac7957bbe6cba222 /Python
parent127b2ef2d568a929d08f07219a45283cb546ab00 (diff)
downloadcpython-078b24f000d44a0827e1555f8cb2b525923da593.zip
cpython-078b24f000d44a0827e1555f8cb2b525923da593.tar.gz
cpython-078b24f000d44a0827e1555f8cb2b525923da593.tar.bz2
When refering to Unicode characters in exception messages and
docstrings, the documentation guidelines call for "Unicode", not "unicode". Comply.
Diffstat (limited to 'Python')
-rw-r--r--Python/bltinmodule.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 84d7aeb..8b8bf3d 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -192,7 +192,7 @@ builtin_unicode(self, args)
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 @@ builtin_unichr(self, args)
}
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 @@ builtin_ord(self, args)
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 @@ builtin_ord(self, args)
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 *