]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-129173: simplify `PyCodec_XMLCharRefReplaceErrors` logic (#129894)
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Mon, 3 Mar 2025 11:43:22 +0000 (12:43 +0100)
committerGitHub <noreply@github.com>
Mon, 3 Mar 2025 11:43:22 +0000 (11:43 +0000)
commitf693f8422700f889f90ab548ceeb24704a2ae952
tree7045b6b1897b5d17a72f838bbc83fce0c31d3970
parentefbc5929ca022661bd311b075116746d294bd71b
gh-129173: simplify `PyCodec_XMLCharRefReplaceErrors` logic (#129894)

Writing the decimal representation of a Unicode codepoint only requires to know the number of digits.

---------

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Python/codecs.c