Skip to content

Commit 50c4ee0

Browse files
Make sure __module__ gets set.
1 parent b739653 commit 50c4ee0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Modules/_xxinterpchannelsmodule.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ static PyTypeObject *
223223
add_new_type(PyObject *mod, PyType_Spec *spec, crossinterpdatafunc shared,
224224
struct xid_class_registry *classes)
225225
{
226-
PyTypeObject *cls = (PyTypeObject *)PyType_FromMetaclass(
227-
NULL, mod, spec, NULL);
226+
PyTypeObject *cls = (PyTypeObject *)PyType_FromModuleAndSpec(
227+
mod, spec, NULL);
228228
if (cls == NULL) {
229229
return NULL;
230230
}
@@ -2266,7 +2266,7 @@ static PyStructSequence_Field channel_info_fields[] = {
22662266
};
22672267

22682268
static PyStructSequence_Desc channel_info_desc = {
2269-
.name = "ChannelInfo",
2269+
.name = MODULE_NAME ".ChannelInfo",
22702270
.doc = channel_info_doc,
22712271
.fields = channel_info_fields,
22722272
.n_in_sequence = 8,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy