diff options
author | Georg Brandl <georg@python.org> | 2006-05-26 20:04:44 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-05-26 20:04:44 (GMT) |
commit | 7784f12d745e5f0d2e4c9e98c792f026897325ea (patch) | |
tree | 9945840040eee759972df75935ff6a84d4ceb308 /Modules/_ctypes | |
parent | 07bbfc6a51578ac0acd8be5ccf2387299d1814f5 (diff) | |
download | cpython-7784f12d745e5f0d2e4c9e98c792f026897325ea.zip cpython-7784f12d745e5f0d2e4c9e98c792f026897325ea.tar.gz cpython-7784f12d745e5f0d2e4c9e98c792f026897325ea.tar.bz2 |
Replace Py_BuildValue("OO") by PyTuple_Pack.
Diffstat (limited to 'Modules/_ctypes')
-rw-r--r-- | Modules/_ctypes/_ctypes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index 6a27833..6bb0880 100644 --- a/Modules/_ctypes/_ctypes.c +++ b/Modules/_ctypes/_ctypes.c @@ -2185,7 +2185,7 @@ _CData_set(CDataObject *dst, PyObject *type, SETFUNC setfunc, PyObject *value, only it's object list. So we create a tuple, containing b_objects list PLUS the array itself, and return that! */ - return Py_BuildValue("(OO)", keep, value); + return PyTuple_Pack(2, keep, value); } PyErr_Format(PyExc_TypeError, "incompatible types, %s instance instead of %s instance", |