Python: Use PyType_Modified() instead of modifying flags.
Closes #2345 Also supported with Py_LIMITED_API
This commit is contained in:
parent
0ba11023ac
commit
2a0abbb7f6
1 changed files with 1 additions and 1 deletions
|
|
@ -1515,7 +1515,7 @@ SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
|
|||
Py_DECREF(inst);
|
||||
inst = 0;
|
||||
} else {
|
||||
Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG;
|
||||
PyType_Modified(Py_TYPE(inst));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue