summaryrefslogtreecommitdiffstats
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-11-22 02:31:20 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-11-22 02:31:20 (GMT)
commit63ab875cfefc0f1f4e123f4d9c885b3079446f35 (patch)
tree486029b035cc7f541bf9553cc388e6007726d4b7 /Python/bltinmodule.c
parent0d3721d986e1cbb601e73cbb4d25552924d8ebf8 (diff)
downloadcpython-63ab875cfefc0f1f4e123f4d9c885b3079446f35.zip
cpython-63ab875cfefc0f1f4e123f4d9c885b3079446f35.tar.gz
cpython-63ab875cfefc0f1f4e123f4d9c885b3079446f35.tar.bz2
Remove "#ifdef Py_UNICODE_WIDE": Python is now always wide
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r--Python/bltinmodule.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 871eaa3..13349cc 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -518,17 +518,10 @@ builtin_chr(PyObject *self, PyObject *args)
return PyUnicode_FromOrdinal(x);
}
-PyDoc_VAR(chr_doc) = PyDoc_STR(
+PyDoc_STRVAR(chr_doc,
"chr(i) -> Unicode character\n\
\n\
-Return a Unicode string of one character with ordinal i; 0 <= i <= 0x10ffff."
-)
-#ifndef Py_UNICODE_WIDE
-PyDoc_STR(
-"\nIf 0x10000 <= i, a surrogate pair is returned."
-)
-#endif
-;
+Return a Unicode string of one character with ordinal i; 0 <= i <= 0x10ffff.");
static char *