summaryrefslogtreecommitdiffstats
path: root/Python/modsupport.c
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2007-06-12 15:23:50 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2007-06-12 15:23:50 (GMT)
commit6e8fcae38f119b95be0c707b7a44db209c485c84 (patch)
tree0f17fe1fea6b8fe35b7596a5db8d7bfc52c51dcb /Python/modsupport.c
parent427dbff8f04a3a34703bf8a1faec77ad334f1d01 (diff)
downloadcpython-6e8fcae38f119b95be0c707b7a44db209c485c84.zip
cpython-6e8fcae38f119b95be0c707b7a44db209c485c84.tar.gz
cpython-6e8fcae38f119b95be0c707b7a44db209c485c84.tar.bz2
Make module docstrings unicode objects.
Diffstat (limited to 'Python/modsupport.c')
-rw-r--r--Python/modsupport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/modsupport.c b/Python/modsupport.c
index 1ea08c3..781a331 100644
--- a/Python/modsupport.c
+++ b/Python/modsupport.c
@@ -92,7 +92,7 @@ Py_InitModule4(const char *name, PyMethodDef *methods, const char *doc,
Py_DECREF(n);
}
if (doc != NULL) {
- v = PyString_FromString(doc);
+ v = PyUnicode_FromString(doc);
if (v == NULL || PyDict_SetItemString(d, "__doc__", v) != 0) {
Py_XDECREF(v);
return NULL;