Skip to content
Prev Previous commit
Next Next commit
nit
  • Loading branch information
corona10 committed Feb 17, 2026
commit fa2505a082b657d4314356d5127173b8e7af492a
3 changes: 1 addition & 2 deletions Objects/dictobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -3322,8 +3322,7 @@ _PyDict_FromKeys(PyObject *cls, PyObject *iterable, PyObject *value)

if (PyAnyDict_CheckExact(d)) {
while ((key = PyIter_Next(it)) != NULL) {
status = anydict_setitem_take2((PyDictObject *)d,
key, Py_NewRef(value));
status = anydict_setitem_take2((PyDictObject *)d, key, Py_NewRef(value));
if (status < 0) {
assert(PyErr_Occurred());
goto Fail;
Expand Down
Loading