Skip to content

gh-129173: refactor PyCodec_BackslashReplaceErrors into separate functions - #129895

Merged
picnixz merged 4 commits into
python:mainfrom
picnixz:feat/codecs/backslashreplace-handler-129173
Mar 3, 2025
Merged

gh-129173: refactor PyCodec_BackslashReplaceErrors into separate functions#129895
picnixz merged 4 commits into
python:mainfrom
picnixz:feat/codecs/backslashreplace-handler-129173

Conversation

@picnixz

@picnixzpicnixz commented Feb 9, 2025

Copy link
Copy Markdown
Member

We also refactor that handler and extract the logic for each exceptions being handled into separate functions.

We also refactor that handler and extract the logic for each
exceptions being handled into separate functions.
@picnixzpicnixz changed the title Use _PyUnicodeError_GetParams for the backslashreplace handler.gh-129173: Use new helpers in the backslashreplace handlerFeb 9, 2025
@picnixzpicnixz changed the title gh-129173: Use new helpers in the backslashreplace handlergh-129173: extract logic of PyCodec_BackslashReplaceErrors into separate functionsMar 3, 2025
@picnixzpicnixz changed the title gh-129173: extract logic of PyCodec_BackslashReplaceErrors into separate functionsgh-129173: refactor PyCodec_BackslashReplaceErrors into separate functionsMar 3, 2025
@picnixz
picnixz marked this pull request as ready for review March 3, 2025 12:25
@picnixz
picnixz requested a review from encukouMarch 3, 2025 12:25
@picnixz
picnixz merged commit 3146a25 into python:mainMar 3, 2025
@picnixz
picnixz deleted the feat/codecs/backslashreplace-handler-129173 branch March 3, 2025 12:58
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@picnixz@encukou