Use PyTuple_Pack instead of Py_BuildValue.

This commit is contained in:
Neil Schemenauer 2005-10-23 17:21:54 +00:00
parent a5bafc43d7
commit 3a44aaa30f

View file

@ -1489,8 +1489,7 @@ compiler_add_o(struct compiler *c, PyObject *dict, PyObject *o)
int arg;
/* necessary to make sure types aren't coerced (e.g., int and long) */
/* XXX should use: t = PyTuple_Pack(2, o, o->ob_type); */
t = Py_BuildValue("(OO)", o, o->ob_type);
t = PyTuple_Pack(2, o, o->ob_type);
if (t == NULL)
return -1;