diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-08-06 08:37:56 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-08-06 11:21:17 +0200 |
| commit | 217a87e1307efd842d9ab16d24bf4a65fe51d410 (patch) | |
| tree | 5c8ef42e6b2753268c88c572b08893dd9eb8db13 /sources/pyside6/libpyside/pysideproperty.cpp | |
| parent | 5eb3675ec71389cad69a599f57cc5a38f44dbe46 (diff) | |
libshiboken: Remove PepRuntime_38_flag
Python 3.9 is now the minimum version.
Change-Id: I7d519cf4b73516ee0d659e377805e2b6f96402d2
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6/libpyside/pysideproperty.cpp')
| -rw-r--r-- | sources/pyside6/libpyside/pysideproperty.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sources/pyside6/libpyside/pysideproperty.cpp b/sources/pyside6/libpyside/pysideproperty.cpp index e31f4da2c..689979c83 100644 --- a/sources/pyside6/libpyside/pysideproperty.cpp +++ b/sources/pyside6/libpyside/pysideproperty.cpp @@ -253,11 +253,9 @@ static int qpropertyTpInit(PyObject *self, PyObject *args, PyObject *kwds) static void qpropertyDeAlloc(PyObject *self) { qpropertyClear(self); - if (PepRuntime_38_flag) { - // PYSIDE-939: Handling references correctly. - // This was not needed before Python 3.8 (Python issue 35810) - Py_DECREF(Py_TYPE(self)); - } + // PYSIDE-939: Handling references correctly. + // This was not needed before Python 3.8 (Python issue 35810) + Py_DECREF(Py_TYPE(self)); PyObject_GC_UnTrack(self); PepExt_TypeCallFree(self); } |
