File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1027,12 +1027,12 @@ exceptiongroup_split_check_match(PyObject *exc,
1027
1027
case EXCEPTION_GROUP_MATCH_INSTANCE_IDS : {
1028
1028
assert (PySet_Check (matcher_value ));
1029
1029
if (!_PyBaseExceptionGroup_Check (exc )) {
1030
- PyObject * exc_key = PyLong_FromVoidPtr (exc );
1031
- if (exc_key == NULL ) {
1030
+ PyObject * exc_id = PyLong_FromVoidPtr (exc );
1031
+ if (exc_id == NULL ) {
1032
1032
return -1 ;
1033
1033
}
1034
- int res = PySet_Contains (matcher_value , exc_key );
1035
- Py_DECREF (exc_key );
1034
+ int res = PySet_Contains (matcher_value , exc_id );
1035
+ Py_DECREF (exc_id );
1036
1036
return res ;
1037
1037
}
1038
1038
return 0 ;
@@ -1230,12 +1230,12 @@ collect_exception_group_leaf_ids(PyObject *exc, PyObject *leaf_ids)
1230
1230
/* Add IDs of all leaf exceptions in exc to the leaf_ids set */
1231
1231
1232
1232
if (!_PyBaseExceptionGroup_Check (exc )) {
1233
- PyObject * exc_key = PyLong_FromVoidPtr (exc );
1234
- if (exc_key == NULL ) {
1233
+ PyObject * exc_id = PyLong_FromVoidPtr (exc );
1234
+ if (exc_id == NULL ) {
1235
1235
return -1 ;
1236
1236
}
1237
- int res = PySet_Add (leaf_ids , exc_key );
1238
- Py_DECREF (exc_key );
1237
+ int res = PySet_Add (leaf_ids , exc_id );
1238
+ Py_DECREF (exc_id );
1239
1239
return res ;
1240
1240
}
1241
1241
PyBaseExceptionGroupObject * eg = _PyBaseExceptionGroupObject_cast (exc );
You can’t perform that action at this time.
0 commit comments