Skip to content

Commit a8aabb6

Browse files
committed
Fix DeprecationWarning about missing module prefix for wrapper types
1 parent 15bcc60 commit a8aabb6

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/interrogatedb/py_wrappers.cxx

+9-9
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ static PyObject *Dtool_MappingWrapper_keys(PyObject *self, PyObject *) {
588588
};
589589

590590
static PyType_Spec wrapper_spec = {
591-
"_interrogate_mapping_wrapper_keys",
591+
"sys._interrogate_mapping_wrapper_keys",
592592
sizeof(Dtool_MappingWrapper),
593593
0,
594594
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_IMMUTABLETYPE,
@@ -664,7 +664,7 @@ static PyObject *Dtool_MappingWrapper_values(PyObject *self, PyObject *) {
664664
};
665665

666666
static PyType_Spec wrapper_spec = {
667-
"_interrogate_mapping_wrapper_values",
667+
"sys._interrogate_mapping_wrapper_values",
668668
sizeof(Dtool_MappingWrapper),
669669
0,
670670
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_IMMUTABLETYPE,
@@ -749,7 +749,7 @@ static PyObject *Dtool_MappingWrapper_items(PyObject *self, PyObject *) {
749749
};
750750

751751
static PyType_Spec wrapper_spec = {
752-
"_interrogate_mapping_wrapper_items",
752+
"sys._interrogate_mapping_wrapper_items",
753753
sizeof(Dtool_MappingWrapper),
754754
0,
755755
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_IMMUTABLETYPE,
@@ -1068,7 +1068,7 @@ Dtool_SequenceWrapper *Dtool_NewSequenceWrapper(PyObject *self, const char *name
10681068
};
10691069

10701070
static PyType_Spec wrapper_spec = {
1071-
"_interrogate_sequence_wrapper",
1071+
"sys._interrogate_sequence_wrapper",
10721072
sizeof(Dtool_SequenceWrapper),
10731073
0,
10741074
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_IMMUTABLETYPE,
@@ -1118,7 +1118,7 @@ Dtool_MutableSequenceWrapper *Dtool_NewMutableSequenceWrapper(PyObject *self, co
11181118
};
11191119

11201120
static PyType_Spec wrapper_spec = {
1121-
"_interrogate_mutable_sequence_wrappes",
1121+
"sys._interrogate_mutable_sequence_wrappes",
11221122
sizeof(Dtool_MutableSequenceWrapper),
11231123
0,
11241124
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_IMMUTABLETYPE,
@@ -1165,7 +1165,7 @@ Dtool_MappingWrapper *Dtool_NewMappingWrapper(PyObject *self, const char *name)
11651165
};
11661166

11671167
static PyType_Spec wrapper_spec = {
1168-
"_interrogate_mapping_wrapper",
1168+
"sys._interrogate_mapping_wrapper",
11691169
sizeof(Dtool_MappingWrapper),
11701170
0,
11711171
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_IMMUTABLETYPE,
@@ -1218,7 +1218,7 @@ Dtool_MappingWrapper *Dtool_NewMutableMappingWrapper(PyObject *self, const char
12181218
};
12191219

12201220
static PyType_Spec wrapper_spec = {
1221-
"_interrogate_mutable_mapping_wrapper",
1221+
"sys._interrogate_mutable_mapping_wrapper",
12221222
sizeof(Dtool_MappingWrapper),
12231223
0,
12241224
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_IMMUTABLETYPE,
@@ -1254,7 +1254,7 @@ Dtool_NewGenerator(PyObject *self, iternextfunc gen_next) {
12541254
};
12551255

12561256
static PyType_Spec wrapper_spec = {
1257-
"_interrogate_generator_wrapper",
1257+
"sys._interrogate_generator_wrapper",
12581258
sizeof(Dtool_GeneratorWrapper),
12591259
0,
12601260
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_IMMUTABLETYPE,
@@ -1288,7 +1288,7 @@ Dtool_NewStaticProperty(PyTypeObject *type, const PyGetSetDef *getset) {
12881288
};
12891289

12901290
static PyType_Spec wrapper_spec = {
1291-
"_interrogate_static_property",
1291+
"sys._interrogate_static_property",
12921292
sizeof(PyGetSetDescrObject),
12931293
0,
12941294
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_IMMUTABLETYPE,

0 commit comments

Comments
 (0)