]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use PyTuple_Pack instead of Py_BuildValue.
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>
Sun, 23 Oct 2005 17:21:54 +0000 (17:21 +0000)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>
Sun, 23 Oct 2005 17:21:54 +0000 (17:21 +0000)
Python/compile.c

index 61e22d10fe077f11cfbfefa9a3b4e932165bd7b8..5e7f35d60e80b3a70da66c224f1a2a81b3019bb9 100644 (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;