Skip to content

Commit 7cffe20

Browse files
fangerertimfel
authored andcommitted
Don't use PyType_FromSpecWithBasesAndMeta
1 parent 4b64525 commit 7cffe20

File tree

1 file changed

+2
-1
lines changed
  • graalpython/lib-graalpython/modules/hpy/devel/src/runtime

1 file changed

+2
-1
lines changed

graalpython/lib-graalpython/modules/hpy/devel/src/runtime/ctx_type.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,8 @@ ctx_Type_FromSpec(HPyContext *ctx, HPyType_Spec *hpyspec,
807807
// PyType_FromSpecWithBases does not support passing a metaclass,
808808
// so we have to use a patched CPython with PyType_FromSpecWithBasesAndMeta
809809
// See also: https://bugs.python.org/issue15870
810-
PyObject *result = PyType_FromSpecWithBasesAndMeta(spec, bases, metatype);
810+
// PyObject *result = PyType_FromSpecWithBasesAndMeta(spec, bases, metatype);
811+
PyObject *result = PyType_FromSpecWithBases(spec, bases);
811812

812813
/* note that we do NOT free the memory which was allocated by
813814
create_method_defs, because that one is referenced internally by

0 commit comments

Comments
 (0)