mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
bpo-46239: improve error message when importing asyncio.windows_events (GH-30353)
This commit is contained in:
parent
1b111338cf
commit
5a2a65096c
2 changed files with 7 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue