Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 91c7730

Browse files
committed
Fixed bug in input() which broke pdb
1 parent f519261 commit 91c7730

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/bltinmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,7 @@ builtin_input(PyObject *self, PyObject *args)
13401340
Py_DECREF(stdin_encoding);
13411341
return NULL;
13421342
}
1343-
prompt = PyString_AsString(po);
1343+
prompt = PyUnicode_AsString(po);
13441344
if (prompt == NULL) {
13451345
Py_DECREF(stdin_encoding);
13461346
Py_DECREF(po);

0 commit comments

Comments
 (0)