mirror of
https://github.com/python/cpython.git
synced 2026-06-22 19:12:50 -04:00
Fixed bug in input() which broke pdb
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user