X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/80823340ab3da196d5225b7c7087f4b7a7dcc35e..059a841c9651ba15b1ecc7a8c35189a813a122eb:/wxPython/src/misc2.i diff --git a/wxPython/src/misc2.i b/wxPython/src/misc2.i index ece14692a1..7cea032de8 100644 --- a/wxPython/src/misc2.i +++ b/wxPython/src/misc2.i @@ -813,14 +813,14 @@ class wxWave : public wxObject { public: wxWave(const wxString& fileName, bool isResource = FALSE) { - bool doSave = wxPyRestoreThread(); + wxPyTState* state = wxPyBeginBlockThreads(); PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); - wxPySaveThread(doSave); + wxPyEndBlockThreads(state); } wxWave(int size, const wxByte* data) { - bool doSave = wxPyRestoreThread(); + wxPyTState* state = wxPyBeginBlockThreads(); PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); - wxPySaveThread(doSave); + wxPyEndBlockThreads(state); } ~wxWave() {}