From: Neil Schemenauer Date: Sun, 23 Oct 2005 17:21:54 +0000 (+0000) Subject: Use PyTuple_Pack instead of Py_BuildValue. X-Git-Tag: v2.5a0~1240 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3a44aaa30fd3f3d39abdbc3608b9f1b08b2443be;p=thirdparty%2FPython%2Fcpython.git Use PyTuple_Pack instead of Py_BuildValue. --- diff --git a/Python/compile.c b/Python/compile.c index 61e22d10fe07..5e7f35d60e80 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -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;