mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
(Merge 3.2) Issue #10570: curses.putp() is now expecting a byte string, instead
of a Unicode string. This is an incompatible change, but putp() is used to emit terminfo commands, which are bytes strings, not Unicode strings.
This commit is contained in:
commit
65f51bb150
3 changed files with 6 additions and 4 deletions
|
@ -2418,7 +2418,8 @@ PyCurses_Putp(PyObject *self, PyObject *args)
|
|||
{
|
||||
char *str;
|
||||
|
||||
if (!PyArg_ParseTuple(args,"s;str", &str)) return NULL;
|
||||
if (!PyArg_ParseTuple(args,"y;str", &str))
|
||||
return NULL;
|
||||
return PyCursesCheckERR(putp(str), "putp");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue