Skip to content

Commit

Permalink
restore old behaviour of Python wrapper of Console class to increase …
Browse files Browse the repository at this point in the history
…flexibility when using in worker threads
  • Loading branch information
wwmayer committed Oct 20, 2019
1 parent 3613d83 commit f98446e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Base/Console.cpp
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit f98446e

Please sign in to comment.