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

Original file line number Diff line number Diff line change
@@ -366,10 +366,6 @@ PyMODINIT_FUNC PyInit__sqlite3(void)
366 366 PyModule_AddObject(module, "Connection", (PyObject*) &pysqlite_ConnectionType);
367 367 Py_INCREF(&pysqlite_CursorType);
368 368 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);
373 369 Py_INCREF(&pysqlite_PrepareProtocolType);
374 370 PyModule_AddObject(module, "PrepareProtocol", (PyObject*) &pysqlite_PrepareProtocolType);
375 371 Py_INCREF(&pysqlite_RowType);