Skip to content

Commit e725f63

Browse files
committed
rename exc_key --> exc_id
1 parent 64406d6 commit e725f63

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Objects/exceptions.c

+8-8
Original file line numberDiff line numberDiff line change
@@ -1027,12 +1027,12 @@ exceptiongroup_split_check_match(PyObject *exc,
10271027
case EXCEPTION_GROUP_MATCH_INSTANCE_IDS: {
10281028
assert(PySet_Check(matcher_value));
10291029
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) {
10321032
return -1;
10331033
}
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);
10361036
return res;
10371037
}
10381038
return 0;
@@ -1230,12 +1230,12 @@ collect_exception_group_leaf_ids(PyObject *exc, PyObject *leaf_ids)
12301230
/* Add IDs of all leaf exceptions in exc to the leaf_ids set */
12311231

12321232
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) {
12351235
return -1;
12361236
}
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);
12391239
return res;
12401240
}
12411241
PyBaseExceptionGroupObject *eg = _PyBaseExceptionGroupObject_cast(exc);

0 commit comments

Comments
 (0)