Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update Modules/_heapqmodule.c
Co-Authored-By: Victor Stinner <vstinner@python.org>
  • Loading branch information
corona10 and vstinner authored Mar 18, 2020
commit f86b764ad4d216f53ee521c6da258a14cf7a15e9
3 changes: 1 addition & 2 deletions Modules/_heapqmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ From all times, sorting has always been a Great Art! :-)\n");
static int
heapq_exec(PyObject *m)
{
PyObject *about = PyUnicode_DecodeUTF8(__about__, strlen(__about__), NULL);
PyObject *about = PyUnicode_FromString(__about__);
if (PyModule_AddObject(m, "__about__", about) < 0) {
Py_DECREF(about);
return -1;
Expand Down Expand Up @@ -726,4 +726,3 @@ PyInit__heapq(void)
{
return PyModuleDef_Init(&_heapqmodule);
}