mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08: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