diff --git a/qtconsole/qtconsoleapp.py b/qtconsole/qtconsoleapp.py index cee348d6..08c651f5 100644 --- a/qtconsole/qtconsoleapp.py +++ b/qtconsole/qtconsoleapp.py @@ -397,21 +397,21 @@ def _init_asyncio_patch(self): FIXME: if/when tornado supports the defaults in asyncio, remove and bump tornado requirement for py38 """ - if sys.platform.startswith("win") and sys.version_info >= (3, 8): - import asyncio - try: - from asyncio import ( - WindowsProactorEventLoopPolicy, - WindowsSelectorEventLoopPolicy, - ) - except ImportError: - pass - # not affected - else: - if type(asyncio.get_event_loop_policy()) is WindowsProactorEventLoopPolicy: - # WindowsProactorEventLoopPolicy is not compatible with tornado 6 - # fallback to the pre-3.8 default of Selector - asyncio.set_event_loop_policy(WindowsSelectorEventLoopPolicy()) + # if sys.platform.startswith("win") and sys.version_info >= (3, 8): + # import asyncio + # try: + # from asyncio import ( + # WindowsProactorEventLoopPolicy, + # WindowsSelectorEventLoopPolicy, + # ) + # except ImportError: + # pass + # # not affected + # else: + # if type(asyncio.get_event_loop_policy()) is WindowsProactorEventLoopPolicy: + # # WindowsProactorEventLoopPolicy is not compatible with tornado 6 + # # fallback to the pre-3.8 default of Selector + # asyncio.set_event_loop_policy(WindowsSelectorEventLoopPolicy()) @catch_config_error def initialize(self, argv=None): diff --git a/setup.py b/setup.py index a5968e6d..6ac739be 100644 --- a/setup.py +++ b/setup.py @@ -73,6 +73,7 @@ 'qtpy>=2.4.0', 'pyzmq>=17.1', 'packaging' + 'tornado==6.3.3' ], extras_require = { 'test': ['flaky', 'pytest', 'pytest-qt'],