mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
[3.10] bpo-44087: Disallow instantiation of sqlite3.Statement (GH-26567) (GH-26816)
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
This commit is contained in:
parent
28fe0159f5
commit
ccc95c7b47
2 changed files with 6 additions and 1 deletions
|
@ -509,7 +509,7 @@ static PyType_Spec stmt_spec = {
|
|||
.name = MODULE_NAME ".Statement",
|
||||
.basicsize = sizeof(pysqlite_Statement),
|
||||
.flags = (Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC |
|
||||
Py_TPFLAGS_IMMUTABLETYPE),
|
||||
Py_TPFLAGS_IMMUTABLETYPE | Py_TPFLAGS_DISALLOW_INSTANTIATION),
|
||||
.slots = stmt_slots,
|
||||
};
|
||||
PyTypeObject *pysqlite_StatementType = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue