summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-08-29 03:13:41 (GMT)
committerGitHub <noreply@github.com>2023-08-29 03:13:41 (GMT)
commitc9eefc77a7456c5354beaff9bdba449d3e42be35 (patch)
tree24d3949af294b2fdee0b20101eb26b51f93dfa04 /Objects
parent921eb8ebf6ae9bd359bc03c24bf1f7537bb498ab (diff)
downloadcpython-c9eefc77a7456c5354beaff9bdba449d3e42be35.zip
cpython-c9eefc77a7456c5354beaff9bdba449d3e42be35.tar.gz
cpython-c9eefc77a7456c5354beaff9bdba449d3e42be35.tar.bz2
gh-106320: Remove private _PyErr_SetKeyError() (#108607)
Move the private _PyErr_SetKeyError() function to the internal C API (pycore_pyerrors.h).
Diffstat (limited to 'Objects')
-rw-r--r--Objects/setobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/setobject.c b/Objects/setobject.c
index 14b53c1..6051e57 100644
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -36,6 +36,7 @@
#include "pycore_dict.h" // _PyDict_Contains_KnownHash()
#include "pycore_modsupport.h" // _PyArg_NoKwnames()
#include "pycore_object.h" // _PyObject_GC_UNTRACK()
+#include "pycore_pyerrors.h" // _PyErr_SetKeyError()
#include "pycore_setobject.h" // _PySet_NextEntry() definition
#include <stddef.h> // offsetof()