Skip to content

Commit 8c9c499

Browse files
fix: apply review comments in Lib/base64.py
Co-authored-by: Peter Bierma <[email protected]>
1 parent 94c716d commit 8c9c499

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/base64.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -605,10 +605,10 @@ def main():
605605
# gh-138775: read input data at once when reading from stdin.
606606
import io
607607
data = sys.stdin.buffer.read()
608-
func(io.BytesIO(data), sys.stdout.buffer)
608+
buffer = io.BytesIO(data)
609609
else:
610-
# keep the old behaviour for non-interactive input
611-
func(sys.stdin.buffer, sys.stdout.buffer)
610+
buffer = sys.stdin.buffer
611+
func(buffer, sys.stdout.buffer)
612612

613613

614614
if __name__ == '__main__':

0 commit comments

Comments
 (0)