File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -60,9 +60,8 @@ static PyObject *
60
60
get_module_from_owned_type (PyTypeObject * cls )
61
61
{
62
62
assert (cls != NULL );
63
- // XXX We can't use PyType_GetModule() until the module's types
64
- // are heap types.
65
63
return _get_current_module ();
64
+ // XXX Use the more efficient API now that we use heap types:
66
65
//return PyType_GetModule(cls);
67
66
}
68
67
@@ -72,9 +71,8 @@ static PyObject *
72
71
get_module_from_type (PyTypeObject * cls )
73
72
{
74
73
assert (cls != NULL );
75
- // XXX We can't use PyType_GetModuleByDef() until the module's types
76
- // are heap types.
77
74
return _get_current_module ();
75
+ // XXX Use the more efficient API now that we use heap types:
78
76
//return PyType_GetModuleByDef(cls, &moduledef);
79
77
}
80
78
You can’t perform that action at this time.
0 commit comments