Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 07e8300

Browse filesBrowse files
iritkatrielgaogaotiantian
authored andcommitted
pythongh-102192: use PyErr_SetHandledException instead of the legacy PyErr_SetExcInfo (python#103157)
1 parent 3513381 commit 07e8300
Copy full SHA for 07e8300

File tree

2 files changed

+2
-2
lines changed
Filter options

2 files changed

+2
-2
lines changed

‎Python/bytecodes.c

Copy file name to clipboardExpand all lines: Python/bytecodes.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1842,7 +1842,7 @@ dummy_func(
18421842
ERROR_IF(match == NULL, error);
18431843

18441844
if (!Py_IsNone(match)) {
1845-
PyErr_SetExcInfo(NULL, Py_NewRef(match), NULL);
1845+
PyErr_SetHandledException(match);
18461846
}
18471847
}
18481848

‎Python/generated_cases.c.h

Copy file name to clipboardExpand all lines: Python/generated_cases.c.h
+1-1Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.