summaryrefslogtreecommitdiffstats
path: root/Python/ast.c
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-05-26 20:04:44 (GMT)
committerGeorg Brandl <georg@python.org>2006-05-26 20:04:44 (GMT)
commit7784f12d745e5f0d2e4c9e98c792f026897325ea (patch)
tree9945840040eee759972df75935ff6a84d4ceb308 /Python/ast.c
parent07bbfc6a51578ac0acd8be5ccf2387299d1814f5 (diff)
downloadcpython-7784f12d745e5f0d2e4c9e98c792f026897325ea.zip
cpython-7784f12d745e5f0d2e4c9e98c792f026897325ea.tar.gz
cpython-7784f12d745e5f0d2e4c9e98c792f026897325ea.tar.bz2
Replace Py_BuildValue("OO") by PyTuple_Pack.
Diffstat (limited to 'Python/ast.c')
-rw-r--r--Python/ast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ast.c b/Python/ast.c
index 9664590..f3e611b 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -107,7 +107,7 @@ ast_error_finish(const char *filename)
Py_DECREF(errstr);
return;
}
- value = Py_BuildValue("(OO)", errstr, tmp);
+ value = PyTuple_Pack(2, errstr, tmp);
Py_DECREF(errstr);
Py_DECREF(tmp);
if (!value)