summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2005-10-23 17:21:54 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2005-10-23 17:21:54 (GMT)
commit3a44aaa30fd3f3d39abdbc3608b9f1b08b2443be (patch)
treecb2ccbf5563925aa25e9abbb719a30b24868b3e2 /Python
parenta5bafc43d7cfb3f635eeb51eff728efbfca363fb (diff)
downloadcpython-3a44aaa30fd3f3d39abdbc3608b9f1b08b2443be.zip
cpython-3a44aaa30fd3f3d39abdbc3608b9f1b08b2443be.tar.gz
cpython-3a44aaa30fd3f3d39abdbc3608b9f1b08b2443be.tar.bz2
Use PyTuple_Pack instead of Py_BuildValue.
Diffstat (limited to 'Python')
-rw-r--r--Python/compile.c3
1 files changed, 1 insertions, 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;