commit | 6e8fcae38f119b95be0c707b7a44db209c485c84 | [log] [tgz] |
---|---|---|
author | Walter Dörwald <walter@livinglogic.de> | Tue Jun 12 15:23:50 2007 +0000 |
committer | Walter Dörwald <walter@livinglogic.de> | Tue Jun 12 15:23:50 2007 +0000 |
tree | 0f17fe1fea6b8fe35b7596a5db8d7bfc52c51dcb | |
parent | 427dbff8f04a3a34703bf8a1faec77ad334f1d01 [diff] |
Make module docstrings unicode objects.
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_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;