diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2020-05-27 09:03:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-27 09:03:38 (GMT) |
commit | 1cf15af9a6f28750f37b08c028ada31d38e818dd (patch) | |
tree | 19918a3d6cc25f3f2bcd14687be59c8926825020 /Modules/_curses_panel.c | |
parent | 404b23b85b17c84e022779f31fc89cb0ed0d37e8 (diff) | |
download | cpython-1cf15af9a6f28750f37b08c028ada31d38e818dd.zip cpython-1cf15af9a6f28750f37b08c028ada31d38e818dd.tar.gz cpython-1cf15af9a6f28750f37b08c028ada31d38e818dd.tar.bz2 |
bpo-40217: Ensure Py_VISIT(Py_TYPE(self)) is always called for PyType_FromSpec types (reverts GH-19414) (GH-20264)
Heap types now always visit the type in tp_traverse. See added docs for details.
This reverts commit 0169d3003be3d072751dd14a5c84748ab63a249f.
Automerge-Triggered-By: @encukou
Diffstat (limited to 'Modules/_curses_panel.c')
-rw-r--r-- | Modules/_curses_panel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_curses_panel.c b/Modules/_curses_panel.c index 7ca91f6..f124803 100644 --- a/Modules/_curses_panel.c +++ b/Modules/_curses_panel.c @@ -39,6 +39,7 @@ _curses_panel_clear(PyObject *m) static int _curses_panel_traverse(PyObject *m, visitproc visit, void *arg) { + Py_VISIT(Py_TYPE(m)); Py_VISIT(get_curses_panelstate(m)->PyCursesError); return 0; } |