From 91c77301bf0246deabcdcd80bc7bedb169e2f964 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Sun, 25 Nov 2007 09:18:01 +0000 Subject: Fixed bug in input() which broke pdb --- Python/bltinmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 4ce774b..b109ba7 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -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); -- cgit v0.12