From 6e8fcae38f119b95be0c707b7a44db209c485c84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Walter=20D=C3=B6rwald?= Date: Tue, 12 Jun 2007 15:23:50 +0000 Subject: Make module docstrings unicode objects. --- Python/modsupport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v0.12