diff options
author | Simo Fält <simo.falt@qt.io> | 2023-05-25 11:25:57 +0300 |
---|---|---|
committer | Simo Fält <simo.falt@qt.io> | 2023-05-25 11:25:57 +0300 |
commit | 2342e61cb53824e2dcd6324e3d108500d61ffee2 (patch) | |
tree | 2899ebce2effcb9e3bd5622fbdb371f75feadd59 /sources/shiboken2/libshiboken/signature/signature.cpp | |
parent | e31990ada911989dbcef3d4833f77dd054030e2c (diff) | |
parent | b9cf35960e98adf9af7c4ea2cc09bfbdadf4f71f (diff) |
Merge tag 'v5.15.8-lts' into tqtc/lts-5.15-opensourcev5.15.8-lts-lgpl
Qt For Python Release 5.15.8
Change-Id: Ib92716482ef78eead1859f4f0c980b308a6e5846
Diffstat (limited to 'sources/shiboken2/libshiboken/signature/signature.cpp')
-rw-r--r-- | sources/shiboken2/libshiboken/signature/signature.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sources/shiboken2/libshiboken/signature/signature.cpp b/sources/shiboken2/libshiboken/signature/signature.cpp index 3051c50d5..191af3d9b 100644 --- a/sources/shiboken2/libshiboken/signature/signature.cpp +++ b/sources/shiboken2/libshiboken/signature/signature.cpp @@ -471,6 +471,9 @@ static PyObject *adjustFuncName(const char *func_name) // Run `eval` on the type string to get the object. AutoDecRef obtype(PyRun_String(_path, Py_eval_input, ns, ns)); + if (obtype.isNull()) + return String::fromCString(func_name); + if (PyModule_Check(obtype.object())) { // This is a plain function. Return the unmangled name. return String::fromCString(func_name); |