Custom AU discovery code
[carla.git] / data / patches / pyliblo-python3.7.patch
blob5cee8ea9848fdb2ecaba1adb4a5421e09360ada8
1 diff --git a/src/liblo.c b/src/liblo.c
2 index bb314a5..6535baf 100644
3 --- a/src/liblo.c
4 +++ b/src/liblo.c
5 @@ -13882,12 +13882,12 @@ static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb)
6 *value = local_value;
7 *tb = local_tb;
8 #if CYTHON_COMPILING_IN_CPYTHON
9 - tmp_type = tstate->exc_type;
10 - tmp_value = tstate->exc_value;
11 - tmp_tb = tstate->exc_traceback;
12 - tstate->exc_type = local_type;
13 - tstate->exc_value = local_value;
14 - tstate->exc_traceback = local_tb;
15 + tmp_type = tstate->exc_state.exc_type;
16 + tmp_value = tstate->exc_state.exc_value;
17 + tmp_tb = tstate->exc_state.exc_traceback;
18 + tstate->exc_state.exc_type = local_type;
19 + tstate->exc_state.exc_value = local_value;
20 + tstate->exc_state.exc_traceback = local_tb;
21 /* Make sure tstate is in a consistent state when we XDECREF
22 these objects (DECREF may run arbitrary code). */
23 Py_XDECREF(tmp_type);
24 @@ -13927,9 +13927,9 @@ bad:
25 static CYTHON_INLINE void __Pyx_ExceptionSave(PyObject **type, PyObject **value, PyObject **tb) {
26 #if CYTHON_COMPILING_IN_CPYTHON
27 PyThreadState *tstate = PyThreadState_GET();
28 - *type = tstate->exc_type;
29 - *value = tstate->exc_value;
30 - *tb = tstate->exc_traceback;
31 + *type = tstate->exc_state.exc_type;
32 + *value = tstate->exc_state.exc_value;
33 + *tb = tstate->exc_state.exc_traceback;
34 Py_XINCREF(*type);
35 Py_XINCREF(*value);
36 Py_XINCREF(*tb);
37 @@ -13941,12 +13941,12 @@ static void __Pyx_ExceptionReset(PyObject *type, PyObject *value, PyObject *tb)
38 #if CYTHON_COMPILING_IN_CPYTHON
39 PyObject *tmp_type, *tmp_value, *tmp_tb;
40 PyThreadState *tstate = PyThreadState_GET();
41 - tmp_type = tstate->exc_type;
42 - tmp_value = tstate->exc_value;
43 - tmp_tb = tstate->exc_traceback;
44 - tstate->exc_type = type;
45 - tstate->exc_value = value;
46 - tstate->exc_traceback = tb;
47 + tmp_type = tstate->exc_state.exc_type;
48 + tmp_value = tstate->exc_state.exc_value;
49 + tmp_tb = tstate->exc_state.exc_traceback;
50 + tstate->exc_state.exc_type = type;
51 + tstate->exc_state.exc_value = value;
52 + tstate->exc_state.exc_traceback = tb;
53 Py_XDECREF(tmp_type);
54 Py_XDECREF(tmp_value);
55 Py_XDECREF(tmp_tb);