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:
Victor Stinner 2011-11-03 20:35:40 +01:00
parent 9c2f42f253
commit b3bc7e764d
3 changed files with 6 additions and 4 deletions

View file

@ -2379,7 +2379,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");
}