mirror of https://github.com/python/cpython
bpo-46239: improve error message when importing `asyncio.windows_events` (GH-30353)
This commit is contained in:
parent
1b111338cf
commit
5a2a65096c
|
@ -1,5 +1,10 @@
|
|||
"""Selector and proactor event loops for Windows."""
|
||||
|
||||
import sys
|
||||
|
||||
if sys.platform != 'win32': # pragma: no cover
|
||||
raise ImportError('win32 only')
|
||||
|
||||
import _overlapped
|
||||
import _winapi
|
||||
import errno
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
Improve error message when importing :mod:`asyncio.windows_events` on
|
||||
non-Windows.
|
Loading…
Reference in New Issue