]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] 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:12:57 +0000 (01:12 +0100)
committerGitHub <noreply@github.com>
Wed, 12 Nov 2025 00:12:57 +0000 (00:12 +0000)
commit83c3eae099c8d2a64e85ba94289f561c5e6d5521
tree9c83f87d5f6ffecc73b82ad3e77b0a88dedecdab
parent91f33ef3c8d3708a61d37de83fe120fd43e22a8d
[3.14] gh-138775: fix handle `python -m base64` stdin correct with EOF signal (GH-138776) (#141432)

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]