We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94c716d commit 8c9c499Copy full SHA for 8c9c499
Lib/base64.py
@@ -605,10 +605,10 @@ def main():
605
# gh-138775: read input data at once when reading from stdin.
606
import io
607
data = sys.stdin.buffer.read()
608
- func(io.BytesIO(data), sys.stdout.buffer)
+ buffer = io.BytesIO(data)
609
else:
610
- # keep the old behaviour for non-interactive input
611
- func(sys.stdin.buffer, sys.stdout.buffer)
+ buffer = sys.stdin.buffer
+ func(buffer, sys.stdout.buffer)
612
613
614
if __name__ == '__main__':
0 commit comments