Skip to content

Commit 0cbc440

Browse files
committed
Reword comment and NEWS entry.
1 parent 8d6208b commit 0cbc440

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Lib/base64.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ def main():
602602
func(f, sys.stdout.buffer)
603603
else:
604604
if sys.stdin.isatty():
605-
# gh-138775: read input data at once when reading from stdin.
605+
# gh-138775: read terminal input data all at once to detect EOF
606606
import io
607607
data = sys.stdin.buffer.read()
608608
buffer = io.BytesIO(data)
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
:mod:`base64`: fix the EOF being ignored in command-line interface.
1+
Use of ``python -m`` with :mod:`base64` has been fixed to detect input from a
2+
terminal so that it properly notices EOF.

0 commit comments

Comments
 (0)