diff options
author | Steve Dower <steve.dower@microsoft.com> | 2016-08-31 04:22:36 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2016-08-31 04:22:36 (GMT) |
commit | 3929499914d47365ae744df312e16da8955c90ac (patch) | |
tree | 05b723ba49e1767624ffbe932708bccb681dd702 /Lib/io.py | |
parent | b957b0c2bc467fbf16fbe5ceaf5a289bc62a5442 (diff) | |
download | cpython-3929499914d47365ae744df312e16da8955c90ac.zip cpython-3929499914d47365ae744df312e16da8955c90ac.tar.gz cpython-3929499914d47365ae744df312e16da8955c90ac.tar.bz2 |
Issue #1602: Windows console doesn't input or print Unicode (PEP 528)
Closes #17602: Adds a readline implementation for the Windows console
Diffstat (limited to 'Lib/io.py')
-rw-r--r-- | Lib/io.py | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -90,3 +90,10 @@ for klass in (BytesIO, BufferedReader, BufferedWriter, BufferedRandom, for klass in (StringIO, TextIOWrapper): TextIOBase.register(klass) del klass + +try: + from _io import _WindowsConsoleIO +except ImportError: + pass +else: + RawIOBase.register(_WindowsConsoleIO) |