mirror of
https://github.com/python/cpython.git
synced 2025-09-30 20:31:52 +00:00
correct the typos (GH-4950) (#4951)
(cherry picked from commit 83cb778b4a
)
This commit is contained in:
parent
4aa84e7285
commit
020668b8e1
1 changed files with 2 additions and 2 deletions
|
@ -1365,7 +1365,7 @@ PyCursesWindow_InsCh(PyCursesWindowObject *self, PyObject *args)
|
||||||
use_xy = TRUE;
|
use_xy = TRUE;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
PyErr_SetString(PyExc_TypeError, "insch requires 1 or 4 arguments");
|
PyErr_SetString(PyExc_TypeError, "insch requires 1 to 4 arguments");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1396,7 +1396,7 @@ PyCursesWindow_InCh(PyCursesWindowObject *self, PyObject *args)
|
||||||
rtn = mvwinch(self->win,y,x);
|
rtn = mvwinch(self->win,y,x);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
PyErr_SetString(PyExc_TypeError, "inch requires 0 or 2 arguments");
|
PyErr_SetString(PyExc_TypeError, "inch requires 0 to 2 arguments");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
return PyLong_FromUnsignedLong(rtn);
|
return PyLong_FromUnsignedLong(rtn);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue