summaryrefslogtreecommitdiffstats
path: root/Modules/_sqlite
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-07-03 10:48:50 (GMT)
committerGitHub <noreply@github.com>2023-07-03 10:48:50 (GMT)
commitc5afc97fc2f149758f597c21f65b4a1c770bb827 (patch)
tree8f85655985da6804d77f352ca7e90f4ecc96bc0c /Modules/_sqlite
parent18fedd04a7b4d54b5eb7a34a1e1c9ca42219f882 (diff)
downloadcpython-c5afc97fc2f149758f597c21f65b4a1c770bb827.zip
cpython-c5afc97fc2f149758f597c21f65b4a1c770bb827.tar.gz
cpython-c5afc97fc2f149758f597c21f65b4a1c770bb827.tar.bz2
gh-106320: Remove private _PyErr C API functions (#106356)
Remove private _PyErr C API functions: move them to the internal C API (pycore_pyerrors.h).
Diffstat (limited to 'Modules/_sqlite')
-rw-r--r--Modules/_sqlite/cursor.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/_sqlite/cursor.c b/Modules/_sqlite/cursor.c
index caeedbd..dba8ab6 100644
--- a/Modules/_sqlite/cursor.c
+++ b/Modules/_sqlite/cursor.c
@@ -21,11 +21,17 @@
* 3. This notice may not be removed or altered from any source distribution.
*/
+#ifndef Py_BUILD_CORE_BUILTIN
+# define Py_BUILD_CORE_MODULE 1
+#endif
+
#include "cursor.h"
#include "microprotocols.h"
#include "module.h"
#include "util.h"
+#include "pycore_pyerrors.h" // _PyErr_FormatFromCause()
+
typedef enum {
TYPE_LONG,
TYPE_FLOAT,