]> granicus.if.org Git - python/commitdiff
Make module docstrings unicode objects.
authorWalter Dörwald <walter@livinglogic.de>
Tue, 12 Jun 2007 15:23:50 +0000 (15:23 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Tue, 12 Jun 2007 15:23:50 +0000 (15:23 +0000)
Python/modsupport.c

index 1ea08c39a5ec95c588b6d4ecb5a4218c6f13047e..781a331493b393597613c85cb8a33d193109374d 100644 (file)
@@ -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;