Replace Py_BuildValue("OO") by PyTuple_Pack.

This commit is contained in:
Georg Brandl 2006-05-26 20:04:44 +00:00
parent 07bbfc6a51
commit 7784f12d74
3 changed files with 5 additions and 5 deletions

View file

@ -107,7 +107,7 @@ ast_error_finish(const char *filename)
Py_DECREF(errstr);
return;
}
value = Py_BuildValue("(OO)", errstr, tmp);
value = PyTuple_Pack(2, errstr, tmp);
Py_DECREF(errstr);
Py_DECREF(tmp);
if (!value)