Author: Ronan Lamy <[email protected]>
Branch: py3.6
Changeset: r97702:f7ddde9c4602
Date: 2019-10-01 21:26 +0100
http://bitbucket.org/pypy/pypy/changeset/f7ddde9c4602/
Log: Use built-in module _io instead of io
diff --git a/pypy/module/sys/std_test.py b/pypy/module/sys/std_test.py
--- a/pypy/module/sys/std_test.py
+++ b/pypy/module/sys/std_test.py
@@ -1,18 +1,18 @@
# Install standard streams for tests that don't call app_main. Always
# use line buffering, even for tests that capture standard descriptors.
-import io
+import _io
-stdin = io.open(0, "r", encoding="ascii",
+stdin = _io.open(0, "r", encoding="ascii",
closefd=False)
stdin.buffer.raw.name = "<stdin>"
-stdout = io.open(1, "w", encoding="ascii",
+stdout = _io.open(1, "w", encoding="ascii",
buffering=1,
closefd=False)
stdout.buffer.raw.name = "<stdout>"
-stderr = io.open(2, "w", encoding="ascii",
+stderr = _io.open(2, "w", encoding="ascii",
errors="backslashreplace",
buffering=1,
closefd=False)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit