8000 bpo-1635741 port _curses_panel to multi-phase init (PEP 489) by koubaa · Pull Request #21986 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-1635741 port _curses_panel to multi-phase init (PEP 489) #21986

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 16 commits into from
Sep 7, 2020
Prev Previous commit
Next Next commit
fix warning
  • Loading branch information
koubaa committed Sep 7, 2020
commit 34e43749d0ad59ffb1e14dd0b628b7f15a0e8397
4 chang 8000 es: 2 additions & 2 deletions Modules/_curses_panel.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ static const char PyCursesVersion[] = "2.1";

typedef struct {
PyObject *PyCursesError;
PyObject *PyCursesPanel_Type;
PyTypeObject *PyCursesPanel_Type;
} _curses_panelstate;

static inline _curses_panelstate*
Expand Down Expand Up @@ -247,7 +247,7 @@ PyCursesPanel_New(PyObject *module, PANEL *pan, PyCursesWindowObject *wo)
_curses_panelstate *state = get_curses_panelstate(module);

PyCursesPanelObject *po = PyObject_New(PyCursesPanelObject,
(PyTypeObject *)(state->PyCursesPanel_Type));
state->PyCursesPanel_Type);
if (po == NULL) {
return NULL;
}
Expand Down
0