diff Python/bltinmodule.c @ 44020:e6165e389c50

Fixed bug in input() which broke pdb
author Christian Heimes <christian@cheimes.de>
date Sun, 25 Nov 2007 09:18:01 +0000
parents cbc8b3bd3157
children 00048fedbaa0
line wrap: on
line diff
--- a/Python/bltinmodule.c	Sun Nov 25 00:52:21 2007 +0000
+++ b/Python/bltinmodule.c	Sun Nov 25 09:18:01 2007 +0000
@@ -1340,7 +1340,7 @@
 				Py_DECREF(stdin_encoding);
 				return NULL;
 			}
-			prompt = PyString_AsString(po);
+			prompt = PyUnicode_AsString(po);
 			if (prompt == NULL) {
 				Py_DECREF(stdin_encoding);
 				Py_DECREF(po);