]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-138775: fix handle `python -m base64` stdin correct with EOF signal (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 12 Nov 2025 00:10:07 +0000 (01:10 +0100)
committerGitHub <noreply@github.com>
Wed, 12 Nov 2025 00:10:07 +0000 (00:10 +0000)
commit54f620cc7fb8aa75e5526589322a6580c6446a22
tree32e981b3d9dbd245659ea4efdad3ea314c4f98fc
parentb28ba31c69a0aefc630ed4c08684168c8e7b745e
[3.13] gh-138775: fix handle `python -m base64` stdin correct with EOF signal (GH-138776) (#141433)

gh-138775: fix handle `python -m base64` stdin correct with EOF signal (GH-138776)

* fix: handle  stdin correct with EOF single.
* fix: flollow the comments when pipe stdin use buffer
* Apply suggestions from code review
* fix: apply review comments in Lib/base64.py
* fix: address comments
* Reword comment and NEWS entry.

---------
(cherry picked from commit f5c2a41f9a6b3be95c5be9dbae0a4a3342d356dc)

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Co-authored-by: yihong <zouzou0208@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Lib/base64.py
Misc/NEWS.d/next/Library/2025-09-11-15-03-37.gh-issue-138775.w7rnSx.rst [new file with mode: 0644]