diff options
Diffstat (limited to 'Doc/library/asyncio-eventloops.rst')
-rw-r--r-- | Doc/library/asyncio-eventloops.rst | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Doc/library/asyncio-eventloops.rst b/Doc/library/asyncio-eventloops.rst index afb8b9f..48825b2 100644 --- a/Doc/library/asyncio-eventloops.rst +++ b/Doc/library/asyncio-eventloops.rst @@ -57,9 +57,9 @@ asyncio currently provides two implementations of event loops: Example to use a :class:`ProactorEventLoop` on Windows:: - import asyncio, os + import asyncio, sys - if os.name == 'nt': + if sys.platform == 'win32': loop = asyncio.ProactorEventLoop() asyncio.set_event_loop(loop) @@ -196,4 +196,3 @@ Access to the global loop policy Set the current event loop policy. If *policy* is ``None``, the default policy is restored. - |