Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unify 3.12 / non-3.12 error handling branches #3472

Merged
merged 1 commit into from
Sep 23, 2023

Conversation

davidhewitt
Copy link
Member

Split out further from #3471

This PR merges the 3.12 and non-3.12 implementations of PyErrState::normalize into a single implementation with cfgs on the match arm. Where it made sense there were surrounding refactorings to make the normalize and restore implementations share code and read cleanly.

As this doesn't have any changes in behaviour and removes clutter from the other error handling PRs, I will proceed to merge this as soon as it's green.

@davidhewitt davidhewitt added the CI-skip-changelog Skip checking changelog entry label Sep 23, 2023
@davidhewitt davidhewitt added this pull request to the merge queue Sep 23, 2023
Merged via the queue into PyO3:main with commit f691a68 Sep 23, 2023
31 checks passed
@davidhewitt davidhewitt deleted the normalized-exceptions-3 branch September 23, 2023 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI-skip-changelog Skip checking changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant