Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ae89af9

Browse files
committed
Minor patch from Thomas Gellekum:
* Deletes the Panel_NoArgReturnStringFunction() macro, which isn't used anymore * Adjusts two comments.
1 parent 95f1e6f commit ae89af9

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

Modules/_curses_panel.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,6 @@ static PyObject *PyCursesPanel_##X(PyCursesPanelObject *self, PyObject *args) \
145145
{ if (!PyArg_NoArgs(args)) return NULL; \
146146
return PyCursesCheckERR(X(self->pan), # X); }
147147

148-
#define Panel_NoArgReturnStringFunction(X) \
149-
static PyObject *PyCursesPanel_##X(PyCursesPanelObject *self, PyObject *args) \
150-
{ if (!PyArg_NoArgs(args)) return NULL; \
151-
return PyString_FromString(X(self->pan)); }
152-
153148
#define Panel_NoArgTrueFalseFunction(X) \
154149
static PyObject *PyCursesPanel_##X(PyCursesPanelObject *self, PyObject *args) \
155150
{ \
@@ -229,7 +224,7 @@ PyCursesPanel_above(PyCursesPanelObject *self, PyObject *args)
229224
}
230225

231226
/* panel_below(NULL) returns the top panel in the stack. To get
232-
this behaviour we use curses.panel_below(). */
227+
this behaviour we use curses.panel.top_panel(). */
233228
static PyObject *
234229
PyCursesPanel_below(PyCursesPanelObject *self, PyObject *args)
235230
{
@@ -389,8 +384,8 @@ PyCurses_bottom_panel(PyObject *self, PyObject *args)
389384

390385
pan = panel_above(NULL);
391386

392-
if (pan == NULL) { /* valid output, it means there's no panel at
393-
all */
387+
if (pan == NULL) { /* valid output, it means
388+
there's no panel at all */
394389
Py_INCREF(Py_None);
395390
return Py_None;
396391
}

0 commit comments

Comments
 (0)