diff options
author | Guido van Rossum <guido@python.org> | 2007-08-23 23:35:15 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-23 23:35:15 (GMT) |
commit | 928115af726eb620c051933d61c5ac06aa86bd86 (patch) | |
tree | f3237bd03e931ac1329c64753d59e28058d27aff /Objects | |
parent | 13e05de9efe75f1e645c36ffc4833d2b31d437de (diff) | |
download | cpython-928115af726eb620c051933d61c5ac06aa86bd86.zip cpython-928115af726eb620c051933d61c5ac06aa86bd86.tar.gz cpython-928115af726eb620c051933d61c5ac06aa86bd86.tar.bz2 |
CFunctions' doc strings should be Unicode.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/methodobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/methodobject.c b/Objects/methodobject.c index 5f5d595..d7dc280 100644 --- a/Objects/methodobject.c +++ b/Objects/methodobject.c @@ -135,7 +135,7 @@ meth_get__doc__(PyCFunctionObject *m, void *closure) const char *doc = m->m_ml->ml_doc; if (doc != NULL) - return PyString_FromString(doc); + return PyUnicode_FromString(doc); Py_INCREF(Py_None); return Py_None; } @@ -284,7 +284,7 @@ Py_FindMethodInChain(PyMethodChain *chain, PyObject *self, const char *name) if (strcmp(name, "__doc__") == 0) { const char *doc = self->ob_type->tp_doc; if (doc != NULL) - return PyString_FromString(doc); + return PyUnicode_FromString(doc); } } while (chain != NULL) { |