diff options
author | Christian Heimes <christian@cheimes.de> | 2007-11-25 09:18:01 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2007-11-25 09:18:01 (GMT) |
commit | 91c77301bf0246deabcdcd80bc7bedb169e2f964 (patch) | |
tree | 63631dd06e3bcd4158afc2b63781c8220a4b4bac | |
parent | f519261563f8d9b06dfdc18937e7629666e5a54f (diff) | |
download | cpython-91c77301bf0246deabcdcd80bc7bedb169e2f964.zip cpython-91c77301bf0246deabcdcd80bc7bedb169e2f964.tar.gz cpython-91c77301bf0246deabcdcd80bc7bedb169e2f964.tar.bz2 |
Fixed bug in input() which broke pdb
-rw-r--r-- | Python/bltinmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |