summaryrefslogtreecommitdiffstats
path: root/Modules/_decimal
diff options
context:
space:
mode:
authorNice Zombies <nineteendo19d0@gmail.com>2024-04-30 14:55:15 (GMT)
committerGitHub <noreply@github.com>2024-04-30 14:55:15 (GMT)
commit9a75d56d5d9fdffb6ce9d83ede98486df238102d (patch)
tree119a65ca0729b89d0dded348682f42ab5b767c65 /Modules/_decimal
parent17a8af9508d6001e1666de984e2fb73f02167306 (diff)
downloadcpython-9a75d56d5d9fdffb6ce9d83ede98486df238102d.zip
cpython-9a75d56d5d9fdffb6ce9d83ede98486df238102d.tar.gz
cpython-9a75d56d5d9fdffb6ce9d83ede98486df238102d.tar.bz2
gh-118379: Use PyTuple_Pack instead of Py_BuildValue if possible (GH-118381)
Diffstat (limited to 'Modules/_decimal')
-rw-r--r--Modules/_decimal/_decimal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_decimal/_decimal.c b/Modules/_decimal/_decimal.c
index c105367..fe67111 100644
--- a/Modules/_decimal/_decimal.c
+++ b/Modules/_decimal/_decimal.c
@@ -4287,7 +4287,7 @@ nm_mpd_qdivmod(PyObject *v, PyObject *w)
return NULL;
}
- ret = Py_BuildValue("(OO)", q, r);
+ ret = PyTuple_Pack(2, q, r);
Py_DECREF(r);
Py_DECREF(q);
return ret;
@@ -5312,7 +5312,7 @@ ctx_mpd_qdivmod(PyObject *context, PyObject *args)
return NULL;
}
- ret = Py_BuildValue("(OO)", q, r);
+ ret = PyTuple_Pack(2, q, r);
Py_DECREF(r);
Py_DECREF(q);
return ret;