diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-23 23:58:43 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-23 23:58:43 (GMT) |
commit | c1786ea1dc2d04ff77f6e9293bdb89c555e637b6 (patch) | |
tree | c8538c0b153c163fd76500ac87df323e83a0251f /Modules/_heapqmodule.c | |
parent | 10ab4aeb86d72dc2a454ebd09693870a8e5cab4b (diff) | |
download | cpython-c1786ea1dc2d04ff77f6e9293bdb89c555e637b6.zip cpython-c1786ea1dc2d04ff77f6e9293bdb89c555e637b6.tar.gz cpython-c1786ea1dc2d04ff77f6e9293bdb89c555e637b6.tar.bz2 |
Use UTF-8 for a docstring that contains non-ASCII chars.
Diffstat (limited to 'Modules/_heapqmodule.c')
-rw-r--r-- | Modules/_heapqmodule.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Modules/_heapqmodule.c b/Modules/_heapqmodule.c index f970cae..2ae1f03 100644 --- a/Modules/_heapqmodule.c +++ b/Modules/_heapqmodule.c @@ -515,7 +515,7 @@ maintains the heap invariant!\n"); PyDoc_STRVAR(__about__, "Heap queues\n\ \n\ -[explanation by François Pinard]\n\ +[explanation by Fran\xc3\xa7ois Pinard]\n\ \n\ Heaps are arrays for which a[k] <= a[2*k+1] and a[k] <= a[2*k+2] for\n\ all k, counting elements from 0. For the sake of comparison,\n\ @@ -609,11 +609,12 @@ From all times, sorting has always been a Great Art! :-)\n"); PyMODINIT_FUNC init_heapq(void) { - PyObject *m; + PyObject *m, *about; m = Py_InitModule3("_heapq", heapq_methods, module_doc); if (m == NULL) return; - PyModule_AddObject(m, "__about__", PyString_FromString(__about__)); + about = PyUnicode_DecodeUTF8(__about__, strlen(__about__), NULL); + PyModule_AddObject(m, "__about__", about); } |