mirror of
https://github.com/python/cpython.git
synced 2025-09-22 16:33:26 +00:00
Make module docstrings unicode objects.
This commit is contained in:
parent
427dbff8f0
commit
6e8fcae38f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue