8000 rename exc_key --> exc_id · python/cpython@e725f63 · GitHub
[go: up one dir, main page]

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

< 8612 td data-grid-cell-id="diff-96c4ad902cdfac48712fef8fff0d0c78a71eb135fb48264f3ebb67db1013fc94-1232-1232-2" data-line-anchor="diff-96c4ad902cdfac48712fef8fff0d0c78a71eb135fb48264f3ebb67db1013fc94R1232" data-selected="false" role="gridcell" style="background-color:var(--bgColor-default);padding-right:24px" tabindex="-1" valign="top" class="focusable-grid-cell diff-text-cell right-side-diff-cell left-side">
if (!_PyBaseExceptionGroup_Check(exc)) {
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
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)
0