]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-141968: Use take_bytes in encodings.punycode (#141974)
authorCody Maloney <cmaloney@users.noreply.github.com>
Fri, 28 Nov 2025 17:47:14 +0000 (09:47 -0800)
committerGitHub <noreply@github.com>
Fri, 28 Nov 2025 17:47:14 +0000 (17:47 +0000)
commit5a7c9c6861009d3b2e4b566c01f2fb2e14b48514
tree7a0a207521548d0b20e3ca0475a7ecebf8397de2
parent3001464248edfba76fc23d4a8107dc24f2807d46
gh-141968: Use take_bytes in encodings.punycode (#141974)

Removes a copy going from bytearray to bytes.

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Lib/encodings/punycode.py
Misc/NEWS.d/next/Library/2025-11-25-23-29-08.gh-issue-141968.0JnjXf.rst [new file with mode: 0644]