summaryrefslogtreecommitdiffstats
path: root/Modules/_cursesmodule.c
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2000-07-24 23:54:49 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2000-07-24 23:54:49 (GMT)
commit4463acbc32c5e754a9b4ef98e170d0bf21b7e44e (patch)
treeddd402868d531b93312e91d67999d959e7f5475d /Modules/_cursesmodule.c
parent498c18f4d01e6875473270c6d33069eb284667fc (diff)
downloadcpython-4463acbc32c5e754a9b4ef98e170d0bf21b7e44e.zip
cpython-4463acbc32c5e754a9b4ef98e170d0bf21b7e44e.tar.gz
cpython-4463acbc32c5e754a9b4ef98e170d0bf21b7e44e.tar.bz2
Bug report and partial patch from Michael Deegan <michael@ucc.gu.uwa.edu.au>:
reversed tests resulted in an exception when you supplied the correct number of arguments
Diffstat (limited to 'Modules/_cursesmodule.c')
-rw-r--r--Modules/_cursesmodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index b220c94..1cfb635 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -1437,7 +1437,7 @@ PyCurses_color_pair(PyObject *self, PyObject *args)
PyCursesInitialised
PyCursesInitialisedColor
- if (ARG_COUNT(args)!=1) {
+ if (ARG_COUNT(args) != 1) {
PyErr_SetString(PyExc_TypeError, "color_pair requires 1 argument");
return NULL;
}
@@ -1452,7 +1452,7 @@ PyCurses_Curs_Set(PyObject *self, PyObject *args)
PyCursesInitialised
- if (ARG_COUNT(args)==1) {
+ if (ARG_COUNT(args)!=1) {
PyErr_SetString(PyExc_TypeError, "curs_set requires 1 argument");
return NULL;
}
@@ -1472,7 +1472,7 @@ PyCurses_Delay_Output(PyObject *self, PyObject *args)
PyCursesInitialised
- if (ARG_COUNT(args)==1) {
+ if (ARG_COUNT(args) != 1) {
PyErr_SetString(PyExc_TypeError, "delay_output requires 1 argument");
return NULL;
}
@@ -1637,7 +1637,7 @@ PyCurses_Init_Pair(PyObject *self, PyObject *args)
PyCursesInitialised
PyCursesInitialisedColor
- if (ARG_COUNT(args) == 3) {
+ if (ARG_COUNT(args) != 3) {
PyErr_SetString(PyExc_TypeError, "init_pair requires 3 arguments");
return NULL;
}