Apply patch from Ray Allen for issue 9296

This commit is contained in:
Doug Hellmann 2010-07-21 12:36:33 +00:00
parent 8c4fa11591
commit f31db93fc1
2 changed files with 10 additions and 1 deletions

View file

@ -2147,7 +2147,7 @@ encoder_listencode_dict(PyEncoderObject *s, PyObject *rval, PyObject *dct, Py_ss
}
else {
/* TODO: include repr of key */
PyErr_SetString(PyExc_ValueError, "keys must be a string");
PyErr_SetString(PyExc_TypeError, "keys must be a string");
goto bail;
}