bpo-30262: Don't expose private objects in sqlite3 (GH-1440) · python/cpython@e657624

Original file line numberDiff line numberDiff line change

@@ -366,10 +366,6 @@ PyMODINIT_FUNC PyInit__sqlite3(void)

366366

PyModule_AddObject(module, "Connection", (PyObject*) &pysqlite_ConnectionType);

367367

Py_INCREF(&pysqlite_CursorType);

368368

PyModule_AddObject(module, "Cursor", (PyObject*) &pysqlite_CursorType);

369-

Py_INCREF(&pysqlite_CacheType);

370-

PyModule_AddObject(module, "Statement", (PyObject*)&pysqlite_StatementType);

371-

Py_INCREF(&pysqlite_StatementType);

372-

PyModule_AddObject(module, "Cache", (PyObject*) &pysqlite_CacheType);

373369

Py_INCREF(&pysqlite_PrepareProtocolType);

374370

PyModule_AddObject(module, "PrepareProtocol", (PyObject*) &pysqlite_PrepareProtocolType);

375371

Py_INCREF(&pysqlite_RowType);