aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Modules/_sqlite/module.c
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-05-02 23:25:17 +0200
committerGitHub <noreply@github.com>2021-05-02 22:25:17 +0100
commitc96cc089f60d2bf7e003c27413c3239ee9de2990 (patch)
treed93d46ef410fdda18eab4d3a75cc55af541387e9 /Modules/_sqlite/module.c
parent37e0c7850de902179b28f1378fbbc38a5ed3628c (diff)
downloadcpython-c96cc089f60d2bf7e003c27413c3239ee9de2990.tar.gz
cpython-c96cc089f60d2bf7e003c27413c3239ee9de2990.zip
bpo-43434: Move sqlite3.connect audit events to sqlite3.Connection.__init__ (GH-25818)
Diffstat (limited to 'Modules/_sqlite/module.c')
-rw-r--r--Modules/_sqlite/module.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/Modules/_sqlite/module.c b/Modules/_sqlite/module.c
index 2f323fcd001..324994641b4 100644
--- a/Modules/_sqlite/module.c
+++ b/Modules/_sqlite/module.c
@@ -91,20 +91,11 @@ static PyObject* module_connect(PyObject* self, PyObject* args, PyObject*
factory = (PyObject*)pysqlite_ConnectionType;
}
- if (PySys_Audit("sqlite3.connect", "O", database) < 0) {
- return NULL;
- }
-
result = PyObject_Call(factory, args, kwargs);
if (result == NULL) {
return NULL;
}
- if (PySys_Audit("sqlite3.connect/handle", "O", self) < 0) {
- Py_DECREF(result);
- return NULL;
- }
-
return result;
}