[Python-checkins] correct the typos (GH-4950) (#4951)
Andrew Svetlov
webhook-mailer at python.org
Thu Dec 21 00:43:14 EST 2017
https://github.com/python/cpython/commit/020668b8e15c472e51110e20bb3df0672437db1e
commit: 020668b8e15c472e51110e20bb3df0672437db1e
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Andrew Svetlov <andrew.svetlov at gmail.com>
date: 2017-12-21T07:43:11+02:00
summary:
correct the typos (GH-4950) (#4951)
(cherry picked from commit 83cb778b4a3f856f2243b0f0d36fefb5c44b388f)
files:
M Modules/_cursesmodule.c
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index 9a691dbe714..4ac702aa2f8 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -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);
More information about the Python-checkins
mailing list