In raw_input(prompt), make sure that str(prompt) really a string

object before using it.
This commit is contained in:
Guido van Rossum 1998-06-26 18:25:38 +00:00
parent 1bb26872f5
commit d9b5208e90
1 changed files with 2 additions and 0 deletions

View File

@ -1191,6 +1191,8 @@ builtin_raw_input(self, args)
if (po == NULL)
return NULL;
prompt = PyString_AsString(po);
if (prompt == NULL)
return NULL;
}
else {
po = NULL;