]> granicus.if.org Git - python/commitdiff
correct the typos (GH-4950) (#4951)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 21 Dec 2017 05:43:11 +0000 (21:43 -0800)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Thu, 21 Dec 2017 05:43:11 +0000 (07:43 +0200)
(cherry picked from commit 83cb778b4a3f856f2243b0f0d36fefb5c44b388f)

Modules/_cursesmodule.c

index 9a691dbe714e807f53d3ee0694457a7f982ccebc..4ac702aa2f828c6b9fbaf81ec4e906b62cf1051d 100644 (file)
@@ -1365,7 +1365,7 @@ PyCursesWindow_InsCh(PyCursesWindowObject *self, PyObject *args)
         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;
     }
 
@@ -1396,7 +1396,7 @@ PyCursesWindow_InCh(PyCursesWindowObject *self, PyObject *args)
         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 PyLong_FromUnsignedLong(rtn);