aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Modules/_sqlite/module.h
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2022-02-11 17:22:11 +0100
committerGitHub <noreply@github.com>2022-02-11 17:22:11 +0100
commit204946986feee7bc80b233350377d24d20fcb1b8 (patch)
treee66ab16090f97845e0f95f981c720954e244d102 /Modules/_sqlite/module.h
parente0bcfd0e4db193743d4bafc48d10f15ae9ed7b2b (diff)
downloadcpython-204946986feee7bc80b233350377d24d20fcb1b8.tar.gz
cpython-204946986feee7bc80b233350377d24d20fcb1b8.zip
bpo-46613: Add PyType_GetModuleByDef to the public API (GH-31081)
* Make PyType_GetModuleByDef public (remove underscore) Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Modules/_sqlite/module.h')
-rw-r--r--Modules/_sqlite/module.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_sqlite/module.h b/Modules/_sqlite/module.h
index 1d319f1ed55..a248d044af8 100644
--- a/Modules/_sqlite/module.h
+++ b/Modules/_sqlite/module.h
@@ -74,7 +74,7 @@ extern struct PyModuleDef _sqlite3module;
static inline pysqlite_state *
pysqlite_get_state_by_type(PyTypeObject *tp)
{
- PyObject *module = _PyType_GetModuleByDef(tp, &_sqlite3module);
+ PyObject *module = PyType_GetModuleByDef(tp, &_sqlite3module);
assert(module != NULL);
return pysqlite_get_state(module);
}