]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-141930: Use the regular IO stack to write .pyc files for a better error message...
authorStefano Rivera <stefano@rivera.za.net>
Thu, 27 Nov 2025 19:17:59 +0000 (11:17 -0800)
committerGitHub <noreply@github.com>
Thu, 27 Nov 2025 19:17:59 +0000 (19:17 +0000)
commit656a64b37f817cc8fe36ee17f332100482185cce
tree67c54c730f247c4ee25a93e6a19e3f0e73c569ed
parent69f54ce4523174860a92271e3cec5c498f89627f
gh-141930: Use the regular IO stack to write .pyc files for a better error message on failure (GH-141931)

* Use open() to write the bytecode
* Convert to unittest style asserts
* Tweak news, thanks @vstinner
* Tidy
* reword NEWS, avoid word "retried"
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]