summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClinton Stimpson <cjstimp@sandia.gov>2022-09-02 14:29:49 -0600
committerClinton Stimpson <cjstimp@sandia.gov>2022-09-02 15:54:28 -0600
commit2a0abbb7f6ddab87463d7c9bc97917238e25784b (patch)
tree0221d55347823338c37aff058dddb0723c674ba9
parent0ba11023acfc80689ccb58efa91eaf55c2d60e3b (diff)
downloadswig-2a0abbb7f6ddab87463d7c9bc97917238e25784b.tar.gz
Python: Use PyType_Modified() instead of modifying flags.
Closes #2345 Also supported with Py_LIMITED_API
-rw-r--r--Lib/python/pyrun.swg2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/python/pyrun.swg b/Lib/python/pyrun.swg
index a1ac95baf..0dcbc1ce5 100644
--- a/Lib/python/pyrun.swg
+++ b/Lib/python/pyrun.swg
@@ -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));
}
}
}