mirror of
https://github.com/python/cpython.git
synced 2024-11-28 20:33:54 +08:00
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
Block a user