@@ -1710,8 +1710,8 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, InterpreterFrame *frame, int thr
1710
1710
DISPATCH ();
1711
1711
}
1712
1712
1713
- /* We keep LOAD_CLOSURE so that the bytecode stays more readable. */
1714
1713
TARGET (LOAD_CLOSURE ) {
1714
+ /* We keep LOAD_CLOSURE so that the bytecode stays more readable. */
1715
1715
PyObject * value = GETLOCAL (oparg );
1716
1716
if (value == NULL ) {
1717
1717
goto unbound_local_error ;
@@ -3858,10 +3858,10 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, InterpreterFrame *frame, int thr
3858
3858
DISPATCH ();
3859
3859
}
3860
3860
3861
- #define CANNOT_CATCH_MSG "catching classes that do not inherit from "\
3862
- "BaseException is not allowed"
3863
-
3864
3861
TARGET (JUMP_IF_NOT_EXC_MATCH ) {
3862
+ const char * cannot_catch_msg = "catching classes that do not "
3863
+ "inherit from BaseException is not "
3864
+ "allowed" ;
3865
3865
PyObject * right = POP ();
3866
3866
PyObject * left = POP ();
3867
3867
if (PyTuple_Check (right )) {
@@ -3871,7 +3871,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, InterpreterFrame *frame, int thr
3871
3871
PyObject * exc = PyTuple_GET_ITEM (right , i );
3872
3872
if (!PyExceptionClass_Check (exc )) {
3873
3873
_PyErr_SetString (tstate , PyExc_TypeError ,
3874
- CANNOT_CATCH_MSG );
3874
+ cannot_catch_msg );
3875
3875
Py_DECREF (left );
3876
3876
Py_DECREF (right );
3877
3877
goto error ;
@@ -3881,7 +3881,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, InterpreterFrame *frame, int thr
3881
3881
else {
3882
3882
if (!PyExceptionClass_Check (right )) {
3883
3883
_PyErr_SetString (tstate , PyExc_TypeError ,
3884
- CANNOT_CATCH_MSG );
3884
+ cannot_catch_msg );
3885
3885
Py_DECREF (left );
3886
3886
Py_DECREF (right );
3887
3887
goto error ;
0 commit comments