Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Lib/asyncio/windows_events.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Improve error message when importing :mod:`asyncio.windows_events` on
non-Windows.