Skip to content

Commit 851221e

Browse files
committed
remove hardcoded buffersize for standard streams
1 parent ca47b50 commit 851221e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

graalpython/lib-graalpython/__builtins_patches__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ def open(*args, **kwargs):
7777
setattr(builtins, 'open', open)
7878

7979

80-
sys.stdin = _pyio.TextIOWrapper(_pyio.BufferedReader(sys.stdin, 8192), encoding="utf-8", line_buffering=True)
80+
sys.stdin = _pyio.TextIOWrapper(_pyio.BufferedReader(sys.stdin), encoding="utf-8", line_buffering=True)
8181
sys.stdin.mode = "r"
8282
sys.__stdin__ = sys.stdin
83-
sys.stdout = _pyio.TextIOWrapper(_pyio.BufferedWriter(sys.stdout, 8192), encoding="utf-8", line_buffering=True)
83+
sys.stdout = _pyio.TextIOWrapper(_pyio.BufferedWriter(sys.stdout), encoding="utf-8", line_buffering=True)
8484
sys.stdout.mode = "w"
8585
sys.__stdout__ = sys.stdout
86-
sys.stderr = _pyio.TextIOWrapper(_pyio.BufferedWriter(sys.stderr, 8192), encoding="utf-8", line_buffering=True)
86+
sys.stderr = _pyio.TextIOWrapper(_pyio.BufferedWriter(sys.stderr), encoding="utf-8", line_buffering=True)
8787
sys.stderr.mode = "w"
8888
sys.__stderr__ = sys.stderr
8989

0 commit comments

Comments
 (0)