From 3a44aaa30fd3f3d39abdbc3608b9f1b08b2443be Mon Sep 17 00:00:00 2001 From: Neil Schemenauer Date: Sun, 23 Oct 2005 17:21:54 +0000 Subject: Use PyTuple_Pack instead of Py_BuildValue. --- Python/compile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Python/compile.c b/Python/compile.c index 61e22d1..5e7f35d 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; -- cgit v0.12