summaryrefslogtreecommitdiff
path: root/Modules/_sqlite
diff options
context:
space:
mode:
authorAviv Palivoda <palaviv@gmail.com>2019-05-09 21:05:45 +0300
committerBerker Peksag <berker.peksag@gmail.com>2019-05-09 21:05:45 +0300
commite6576248e5174ca5daa362cfd610c07e7eb3a2ae (patch)
treee8353644dade4c676dcc1fff0575d8cd11bb3493 /Modules/_sqlite
parentf00828a742d2e88c910bdfd00f08fcd998554ba5 (diff)
downloadcpython-git-e6576248e5174ca5daa362cfd610c07e7eb3a2ae.tar.gz
bpo-30262: Don't expose private objects in sqlite3 (GH-1440)
The Cache and Statement objects are undocumented and implementation details of the sqlite3 module. They aren't usable from pure Python code.
Diffstat (limited to 'Modules/_sqlite')
-rw-r--r--Modules/_sqlite/module.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/Modules/_sqlite/module.c b/Modules/_sqlite/module.c
index 274ee13c37..c487ba9890 100644
--- a/Modules/_sqlite/module.c
+++ b/Modules/_sqlite/module.c
@@ -366,10 +366,6 @@ PyMODINIT_FUNC PyInit__sqlite3(void)
PyModule_AddObject(module, "Connection", (PyObject*) &pysqlite_ConnectionType);
Py_INCREF(&pysqlite_CursorType);
PyModule_AddObject(module, "Cursor", (PyObject*) &pysqlite_CursorType);
- Py_INCREF(&pysqlite_CacheType);
- PyModule_AddObject(module, "Statement", (PyObject*)&pysqlite_StatementType);
- Py_INCREF(&pysqlite_StatementType);
- PyModule_AddObject(module, "Cache", (PyObject*) &pysqlite_CacheType);
Py_INCREF(&pysqlite_PrepareProtocolType);
PyModule_AddObject(module, "PrepareProtocol", (PyObject*) &pysqlite_PrepareProtocolType);
Py_INCREF(&pysqlite_RowType);