restore old behaviour of Python wrapper of Console class to increase flexibility when using in worker threads

This commit is contained in:
wmayer
2019-10-20 13:51:53 +02:00
parent 4a6b80dbb6
commit 77bc9cd8d5

View File

@@ -525,7 +525,7 @@ PyObject *ConsoleSingleton::sPyMessage(PyObject * /*self*/, PyObject *args)
PY_TRY {
if (string)
Instance().NotifyMessage(string); // process message
Instance().Message("%s",string); // process message
} PY_CATCH;
Py_XDECREF(unicode);
@@ -571,7 +571,7 @@ PyObject *ConsoleSingleton::sPyWarning(PyObject * /*self*/, PyObject *args)
PY_TRY {
if (string)
Instance().NotifyWarning(string); // process message
Instance().Warning("%s",string); // process message
} PY_CATCH;
Py_XDECREF(unicode);
@@ -617,7 +617,7 @@ PyObject *ConsoleSingleton::sPyError(PyObject * /*self*/, PyObject *args)
PY_TRY {
if (string)
Instance().NotifyError(string); // process message
Instance().Error("%s",string); // process message
} PY_CATCH;
Py_XDECREF(unicode);
@@ -663,7 +663,7 @@ PyObject *ConsoleSingleton::sPyLog(PyObject * /*self*/, PyObject *args)
PY_TRY {
if (string)
Instance().NotifyLog(string); // process message
Instance().Log("%s",string); // process message
} PY_CATCH;
Py_XDECREF(unicode);