mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
bpo-43434: Clean up sqlite3.connect() after GH-25818 (GH-25823)
This commit is contained in:
parent
5fb06edbbb
commit
cbb7b9ed4a
1 changed files with 1 additions and 8 deletions
|
@ -77,8 +77,6 @@ static PyObject* module_connect(PyObject* self, PyObject* args, PyObject*
|
||||||
int uri = 0;
|
int uri = 0;
|
||||||
double timeout = 5.0;
|
double timeout = 5.0;
|
||||||
|
|
||||||
PyObject* result;
|
|
||||||
|
|
||||||
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|diOiOip", kwlist,
|
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|diOiOip", kwlist,
|
||||||
&database, &timeout, &detect_types,
|
&database, &timeout, &detect_types,
|
||||||
&isolation_level, &check_same_thread,
|
&isolation_level, &check_same_thread,
|
||||||
|
@ -91,12 +89,7 @@ static PyObject* module_connect(PyObject* self, PyObject* args, PyObject*
|
||||||
factory = (PyObject*)pysqlite_ConnectionType;
|
factory = (PyObject*)pysqlite_ConnectionType;
|
||||||
}
|
}
|
||||||
|
|
||||||
result = PyObject_Call(factory, args, kwargs);
|
return PyObject_Call(factory, args, kwargs);
|
||||||
if (result == NULL) {
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PyDoc_STRVAR(module_connect_doc,
|
PyDoc_STRVAR(module_connect_doc,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue