Skip to content

Commit 6e8fcae

Browse files
committed
Make module docstrings unicode objects.
1 parent 427dbff commit 6e8fcae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/modsupport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Py_InitModule4(const char *name, PyMethodDef *methods, const char *doc,
9292
Py_DECREF(n);
9393
}
9494
if (doc != NULL) {
95-
v = PyString_FromString(doc);
95+
v = PyUnicode_FromString(doc);
9696
if (v == NULL || PyDict_SetItemString(d, "__doc__", v) != 0) {
9797
Py_XDECREF(v);
9898
return NULL;

0 commit comments

Comments
 (0)