mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
Use PyTuple_Pack instead of Py_BuildValue.
This commit is contained in:
parent
a5bafc43d7
commit
3a44aaa30f
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue