]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-141930: Use the regular IO stack to write .pyc files for a better error...
authorCody Maloney <cmaloney@users.noreply.github.com>
Mon, 1 Dec 2025 22:23:07 +0000 (14:23 -0800)
committerGitHub <noreply@github.com>
Mon, 1 Dec 2025 22:23:07 +0000 (23:23 +0100)
commited5d71752b188964d72fc1b11e992a5184c47140
tree052d7b0a8141f00f3b6de06d022e8c0320464858
parentf61e9fcdb623176994df5d3f9b0fd0ef4aa85e22
[3.13] gh-141930: Use the regular IO stack to write .pyc files for a better error message on failure (GH-141931) (#142023)

* Use open() to write the bytecode
* Convert to unittest style asserts
* Tweak news, thanks @vstinner
* Tidy
* reword NEWS, avoid word "retried"
(cherry picked from commit 656a64b37f817cc8fe36ee17f332100482185cce)

Co-authored-by: Stefano Rivera <stefano@rivera.za.net>
Lib/importlib/_bootstrap_external.py
Lib/test/test_importlib/test_util.py
Misc/NEWS.d/next/Core and Builtins/2025-11-24-21-09-30.gh-issue-141930.hIIzSd.rst [new file with mode: 0644]