diff options
author | Guido van Rossum <guido@python.org> | 2007-05-24 17:58:06 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-05-24 17:58:06 (GMT) |
commit | fc3436becdc2b0c214afc2d9190e4114fb1a5254 (patch) | |
tree | 81eda659b95d8dbe92c12730130120612f5fce8b /Lib/site.py | |
parent | 75d6f1a2faf287e0688eb835022352a19a043d49 (diff) | |
download | cpython-fc3436becdc2b0c214afc2d9190e4114fb1a5254.zip cpython-fc3436becdc2b0c214afc2d9190e4114fb1a5254.tar.gz cpython-fc3436becdc2b0c214afc2d9190e4114fb1a5254.tar.bz2 |
Add an encoding property to TextIOBase instances.
Add sys.__std{in,out,err}__.
Make test_sys pass.
Diffstat (limited to 'Lib/site.py')
-rw-r--r-- | Lib/site.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/site.py b/Lib/site.py index e00890e..f7ca83b 100644 --- a/Lib/site.py +++ b/Lib/site.py @@ -411,9 +411,9 @@ def installnewio(): def __new__(cls, *args, **kwds): return io.open(*args, **kwds) __builtin__.open = open - sys.stdin = io.open(0, "r") - sys.stdout = io.open(1, "w") - sys.stderr = io.open(2, "w") + sys.__stdin__ = sys.stdin = io.open(0, "r") + sys.__stdout__ = sys.stdout = io.open(1, "w") + sys.__stderr__ = sys.stderr = io.open(2, "w") def main(): |