Fixed bug in input() which broke pdb
This commit is contained in:
parent
f519261563
commit
91c77301bf
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue