mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Merge with 3.3
This commit is contained in:
commit
8a2a902f88
3 changed files with 20 additions and 0 deletions
|
|
@ -322,6 +322,10 @@ PyCursesPanel_replace_panel(PyCursesPanelObject *self, PyObject *args)
|
|||
static PyObject *
|
||||
PyCursesPanel_set_panel_userptr(PyCursesPanelObject *self, PyObject *obj)
|
||||
{
|
||||
PyObject *oldobj;
|
||||
PyCursesInitialised;
|
||||
oldobj = (PyObject *) panel_userptr(self->pan);
|
||||
Py_XDECREF(oldobj);
|
||||
Py_INCREF(obj);
|
||||
return PyCursesCheckERR(set_panel_userptr(self->pan, (void*)obj),
|
||||
"set_panel_userptr");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue