diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2005-10-23 17:21:54 (GMT) |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2005-10-23 17:21:54 (GMT) |
commit | 3a44aaa30fd3f3d39abdbc3608b9f1b08b2443be (patch) | |
tree | cb2ccbf5563925aa25e9abbb719a30b24868b3e2 /Python/compile.c | |
parent | a5bafc43d7cfb3f635eeb51eff728efbfca363fb (diff) | |
download | cpython-3a44aaa30fd3f3d39abdbc3608b9f1b08b2443be.zip cpython-3a44aaa30fd3f3d39abdbc3608b9f1b08b2443be.tar.gz cpython-3a44aaa30fd3f3d39abdbc3608b9f1b08b2443be.tar.bz2 |
Use PyTuple_Pack instead of Py_BuildValue.
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 3 |
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; |