Commit 6e8fcae3 authored by Walter Dörwald's avatar Walter Dörwald

Make module docstrings unicode objects.

parent 427dbff8
...@@ -92,7 +92,7 @@ Py_InitModule4(const char *name, PyMethodDef *methods, const char *doc, ...@@ -92,7 +92,7 @@ Py_InitModule4(const char *name, PyMethodDef *methods, const char *doc,
Py_DECREF(n); Py_DECREF(n);
} }
if (doc != NULL) { if (doc != NULL) {
v = PyString_FromString(doc); v = PyUnicode_FromString(doc);
if (v == NULL || PyDict_SetItemString(d, "__doc__", v) != 0) { if (v == NULL || PyDict_SetItemString(d, "__doc__", v) != 0) {
Py_XDECREF(v); Py_XDECREF(v);
return NULL; return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment