mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
gh-118379: Use PyTuple_Pack instead of Py_BuildValue if possible (GH-118381)
This commit is contained in:
parent
17a8af9508
commit
9a75d56d5d
6 changed files with 9 additions and 9 deletions
|
|
@ -5500,7 +5500,7 @@ os__path_splitroot_ex_impl(PyObject *module, PyObject *path)
|
|||
if (tail == NULL) {
|
||||
goto exit;
|
||||
}
|
||||
result = Py_BuildValue("(OOO)", drv, root, tail);
|
||||
result = PyTuple_Pack(3, drv, root, tail);
|
||||
exit:
|
||||
PyMem_Free(buffer);
|
||||
Py_XDECREF(drv);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue