Fixed bug in input() which broke pdb

This commit is contained in:
Christian Heimes 2007-11-25 09:18:01 +00:00
parent f519261563
commit 91c77301bf
1 changed files with 1 additions and 1 deletions

View File

@ -1340,7 +1340,7 @@ builtin_input(PyObject *self, PyObject *args)
Py_DECREF(stdin_encoding);
return NULL;
}
prompt = PyString_AsString(po);
prompt = PyUnicode_AsString(po);
if (prompt == NULL) {
Py_DECREF(stdin_encoding);
Py_DECREF(po);