summaryrefslogtreecommitdiffstats
path: root/Modules/_cursesmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-11-03 19:36:55 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-11-03 19:36:55 (GMT)
commit65f51bb1502aad75850c8b66db98d1359314c5d7 (patch)
tree36defcada99055e83f86dc2d825e86e8fce5d45d /Modules/_cursesmodule.c
parent6fc41dd1e34a25298f867110a0f408b2d27e2a3f (diff)
parentb3bc7e764db4327953aaaf1316e0edc0ff6b16fb (diff)
downloadcpython-65f51bb1502aad75850c8b66db98d1359314c5d7.zip
cpython-65f51bb1502aad75850c8b66db98d1359314c5d7.tar.gz
cpython-65f51bb1502aad75850c8b66db98d1359314c5d7.tar.bz2
(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.
Diffstat (limited to 'Modules/_cursesmodule.c')
-rw-r--r--Modules/_cursesmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index cc42f4b..cfa5b7a 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -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");
}