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 ee8bcab commit 4a2b0c7Copy full SHA for 4a2b0c7
graalpython/lib-graalpython/pyio_patches.py
@@ -95,6 +95,9 @@ def open(*args, **kwargs):
95
sys.stderr.mode = "w"
96
sys.__stderr__ = sys.stderr
97
98
+import atexit
99
+atexit.register(sys.stdout.close)
100
+atexit.register(sys.stderr.close)
101
102
# See comment in _pyio.py. This method isn't strictly necessary and is provided
103
# on CPython for performance. Because it goes through memoryview, it is slower
0 commit comments