diff options
author | Christian Tismer <tismer@stackless.com> | 2020-01-05 15:53:22 +0100 |
---|---|---|
committer | Christian Tismer <tismer@stackless.com> | 2020-01-06 09:43:46 +0100 |
commit | 6534335da7d386d27d14cdc8a0198702f9229555 (patch) | |
tree | 483d19b8b9febe244f8e88108b5035a6be28cb12 | |
parent | a936cf492407f5d675bbed74e58cf74b0a567090 (diff) |
Fix Limited API for Python 3.8
This trivial patch fixes an omission that has not been caught
in earlier versions:
PyObject_INIT
must be replaced by
PyObject_Init
I think this change came by chance and was not the primary intent
of the authors. Otherwise they would have made sure that the
PyObject_INIT macro does not even exist when the Limited API
is enabled.
Change-Id: Iee8127dd398f1ec0997b9a629c5c48076137cecf
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
-rw-r--r-- | sources/shiboken2/libshiboken/qapp_macro.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken2/libshiboken/qapp_macro.cpp b/sources/shiboken2/libshiboken/qapp_macro.cpp index f92cc7087..827c240c5 100644 --- a/sources/shiboken2/libshiboken/qapp_macro.cpp +++ b/sources/shiboken2/libshiboken/qapp_macro.cpp @@ -162,7 +162,7 @@ MakeSingletonQAppWrapper(PyTypeObject *type) if (__moduleShutdown != nullptr) Py_XDECREF(PyObject_CallFunction(__moduleShutdown, const_cast<char *>("()"))); } else { - PyObject_INIT(qApp_content, type); + PyObject_Init(qApp_content, type); app_created = true; } Py_INCREF(qApp_content); |