diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-03 19:35:40 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-03 19:35:40 (GMT) |
commit | b3bc7e764db4327953aaaf1316e0edc0ff6b16fb (patch) | |
tree | e6aab05b9902ed7b68d4e43f7e0d824d27bc5adf /Modules | |
parent | 9c2f42f253d37496d52178377ab5e88f2e231401 (diff) | |
download | cpython-b3bc7e764db4327953aaaf1316e0edc0ff6b16fb.zip cpython-b3bc7e764db4327953aaaf1316e0edc0ff6b16fb.tar.gz cpython-b3bc7e764db4327953aaaf1316e0edc0ff6b16fb.tar.bz2 |
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.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_cursesmodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index 4f7a525..5e1afa9 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -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"); } |