mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
bpo-46239: improve error message when importing asyncio.windows_events (GH-30353) (#30388)
(cherry picked from commit 5a2a65096c)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
parent
685b6285b9
commit
cf48a14819
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