Mercurial > cpython-lru_cache-weakref
diff Python/modsupport.c @ 42060:ba5d1a3977e9
Make module docstrings unicode objects.
| author | Walter Dörwald <walter@livinglogic.de> |
|---|---|
| date | Tue, 12 Jun 2007 15:23:50 +0000 |
| parents | cd125fe83051 |
| children | 4db0a0cc57ab |
line wrap: on
line diff
--- a/Python/modsupport.c Tue Jun 12 05:53:00 2007 +0000 +++ b/Python/modsupport.c Tue Jun 12 15:23:50 2007 +0000 @@ -92,7 +92,7 @@ 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;
