##// END OF EJS Templates
Backport PR #9946: Don't require win_unicode_console on Python 3.6...
Matthias Bussonnier -
Show More
@@ -340,6 +340,11 b' class TerminalInteractiveShell(InteractiveShell):'
340 return document.text
340 return document.text
341
341
342 def enable_win_unicode_console(self):
342 def enable_win_unicode_console(self):
343 if sys.version_info >= (3, 6):
344 # Since PEP 528, Python uses the unicode APIs for the Windows
345 # console by default, so WUC shouldn't be needed.
346 return
347
343 import win_unicode_console
348 import win_unicode_console
344
349
345 if PY3:
350 if PY3:
@@ -209,7 +209,8 b' extras_require.update({'
209 ':python_version == "2.7" or python_version == "3.3"': ['pathlib2'],
209 ':python_version == "2.7" or python_version == "3.3"': ['pathlib2'],
210 ':sys_platform != "win32"': ['pexpect'],
210 ':sys_platform != "win32"': ['pexpect'],
211 ':sys_platform == "darwin"': ['appnope'],
211 ':sys_platform == "darwin"': ['appnope'],
212 ':sys_platform == "win32"': ['colorama', 'win_unicode_console>=0.5'],
212 ':sys_platform == "win32"': ['colorama'],
213 ':sys_platform == "win32" and python_version < "3.6"': ['win_unicode_console>=0.5'],
213 'test:python_version == "2.7"': ['mock'],
214 'test:python_version == "2.7"': ['mock'],
214 })
215 })
215 # FIXME: re-specify above platform dependencies for pip < 6
216 # FIXME: re-specify above platform dependencies for pip < 6
General Comments 0
You need to be logged in to leave comments. Login now