commit | 3929499914d47365ae744df312e16da8955c90ac | [log] [tgz] |
---|---|---|
author | Steve Dower <steve.dower@microsoft.com> | Tue Aug 30 21:22:36 2016 -0700 |
committer | Steve Dower <steve.dower@microsoft.com> | Tue Aug 30 21:22:36 2016 -0700 |
tree | 05b723ba49e1767624ffbe932708bccb681dd702 | |
parent | b957b0c2bc467fbf16fbe5ceaf5a289bc62a5442 [diff] [blame] |
Issue #1602: Windows console doesn't input or print Unicode (PEP 528) Closes #17602: Adds a readline implementation for the Windows console
diff --git a/Lib/io.py b/Lib/io.py index e03db97..968ee50 100644 --- a/Lib/io.py +++ b/Lib/io.py
@@ -90,3 +90,10 @@ for klass in (StringIO, TextIOWrapper): TextIOBase.register(klass) del klass + +try: + from _io import _WindowsConsoleIO +except ImportError: + pass +else: + RawIOBase.register(_WindowsConsoleIO)