summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-06-20 19:24:32 (GMT)
committerGitHub <noreply@github.com>2021-06-20 19:24:32 (GMT)
commit7d0a47e1affd0a2f56600f3e9473f55f931595bd (patch)
treeaefae63f26d45e09a212582508bed27a8662d2db /Modules
parent185ecdc1463c527743eeb16a5deef75c1985de79 (diff)
downloadcpython-7d0a47e1affd0a2f56600f3e9473f55f931595bd.zip
cpython-7d0a47e1affd0a2f56600f3e9473f55f931595bd.tar.gz
cpython-7d0a47e1affd0a2f56600f3e9473f55f931595bd.tar.bz2
bpo-44087: Disallow instantiation of sqlite3.Statement (GH-26567)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_sqlite/statement.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_sqlite/statement.c b/Modules/_sqlite/statement.c
index 3960b21..fcf1380 100644
--- a/Modules/_sqlite/statement.c
+++ b/Modules/_sqlite/statement.c
@@ -503,7 +503,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,
};