correct the typos (GH-4950) (#4952)
(cherry picked from commit 83cb778b4a3f856f2243b0f0d36fefb5c44b388f)
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index 6f21dd8..935712a 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -1049,7 +1049,7 @@
use_xy = TRUE;
break;
default:
- PyErr_SetString(PyExc_TypeError, "insch requires 1 or 4 arguments");
+ PyErr_SetString(PyExc_TypeError, "insch requires 1 to 4 arguments");
return NULL;
}
@@ -1082,7 +1082,7 @@
rtn = mvwinch(self->win,y,x);
break;
default:
- PyErr_SetString(PyExc_TypeError, "inch requires 0 or 2 arguments");
+ PyErr_SetString(PyExc_TypeError, "inch requires 0 to 2 arguments");
return NULL;
}
return PyInt_FromLong((long) rtn);