8000 bpo-1635741: Port _heapq module to multiphase initialization. by corona10 · Pull Request #19057 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-1635741: Port _heapq module to multiphase initialization. #19057

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 18, 2020
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);
}

0