summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2001-01-19 15:35:26 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2001-01-19 15:35:26 (GMT)
commitae89af9c636103f425d477904911144f8aba2032 (patch)
tree928c8daffb3e03e48ecb47cba02bf56f7e899596 /Modules
parent95f1e6f631da29cf810a70866e0464dfde935cb0 (diff)
downloadcpython-ae89af9c636103f425d477904911144f8aba2032.zip
cpython-ae89af9c636103f425d477904911144f8aba2032.tar.gz
cpython-ae89af9c636103f425d477904911144f8aba2032.tar.bz2
Minor patch from Thomas Gellekum:
* Deletes the Panel_NoArgReturnStringFunction() macro, which isn't used anymore * Adjusts two comments.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_curses_panel.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/Modules/_curses_panel.c b/Modules/_curses_panel.c
index a281702..e06302d 100644
--- a/Modules/_curses_panel.c
+++ b/Modules/_curses_panel.c
@@ -145,11 +145,6 @@ static PyObject *PyCursesPanel_##X(PyCursesPanelObject *self, PyObject *args) \
{ if (!PyArg_NoArgs(args)) return NULL; \
return PyCursesCheckERR(X(self->pan), # X); }
-#define Panel_NoArgReturnStringFunction(X) \
-static PyObject *PyCursesPanel_##X(PyCursesPanelObject *self, PyObject *args) \
-{ if (!PyArg_NoArgs(args)) return NULL; \
- return PyString_FromString(X(self->pan)); }
-
#define Panel_NoArgTrueFalseFunction(X) \
static PyObject *PyCursesPanel_##X(PyCursesPanelObject *self, PyObject *args) \
{ \
@@ -229,7 +224,7 @@ PyCursesPanel_above(PyCursesPanelObject *self, PyObject *args)
}
/* panel_below(NULL) returns the top panel in the stack. To get
- this behaviour we use curses.panel_below(). */
+ this behaviour we use curses.panel.top_panel(). */
static PyObject *
PyCursesPanel_below(PyCursesPanelObject *self, PyObject *args)
{
@@ -389,8 +384,8 @@ PyCurses_bottom_panel(PyObject *self, PyObject *args)
pan = panel_above(NULL);
- if (pan == NULL) { /* valid output, it means there's no panel at
- all */
+ if (pan == NULL) { /* valid output, it means
+ there's no panel at all */
Py_INCREF(Py_None);
return Py_None;
}