Skip to content

Commit 6d22771

Browse files
author
Erlend E. Aasland
committed
Remove Py_TPFLAGS_HEAPTYPE from .flags
1 parent 9226ab5 commit 6d22771

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Modules/_sqlite/cache.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ static PyType_Slot pysqlite_NodeType_slots[] = {
267267
static PyType_Spec pysqlite_NodeType_spec = {
268268
.name = MODULE_NAME ".Node",
269269
.basicsize = sizeof(pysqlite_Node),
270-
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HEAPTYPE,
270+
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
271271
.slots = pysqlite_NodeType_slots,
272272
};
273273
PyTypeObject *pysqlite_NodeType = NULL;
@@ -291,7 +291,7 @@ static PyType_Slot pysqlite_CacheType_slots[] = {
291291
static PyType_Spec pysqlite_CacheType_spec = {
292292
.name = MODULE_NAME ".Cache",
293293
.basicsize = sizeof(pysqlite_Cache),
294-
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HEAPTYPE,
294+
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
295295
.slots = pysqlite_CacheType_slots,
296296
};
297297
PyTypeObject *pysqlite_CacheType = NULL;

Modules/_sqlite/prepare_protocol.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static PyType_Slot type_slots[] = {
4646
static PyType_Spec type_spec = {
4747
.name = MODULE_NAME ".PrepareProtocol",
4848
.basicsize = sizeof(pysqlite_PrepareProtocol),
49-
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HEAPTYPE,
49+
.flags = Py_TPFLAGS_DEFAULT,
5050
.slots = type_slots,
5151
};
5252

Modules/_sqlite/row.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ static PyType_Slot row_slots[] = {
232232
static PyType_Spec row_spec = {
233233
.name = MODULE_NAME ".Row",
234234
.basicsize = sizeof(pysqlite_Row),
235-
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_HEAPTYPE,
235+
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
236236
.slots = row_slots,
237237
};
238238

Modules/_sqlite/statement.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ static PyType_Slot stmt_slots[] = {
475475
static PyType_Spec stmt_spec = {
476476
.name = MODULE_NAME ".Statement",
477477
.basicsize = sizeof(pysqlite_Statement),
478-
.flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HEAPTYPE,
478+
.flags = Py_TPFLAGS_DEFAULT,
479479
.slots = stmt_slots,
480480
};
481481
PyTypeObject *pysqlite_StatementType = NULL;

0 commit comments

Comments
 (0)