bpo-34687: Update asyncio doc for ProactorEventLoop (GH-9623) · python/cpython@37aae9d · GitHub
Skip to content

Commit 37aae9d

Browse files
vstinnermiss-islington
authored andcommitted
bpo-34687: Update asyncio doc for ProactorEventLoop (GH-9623)
Since ProactorEventLoop is now the default in 3.8, remove examples using it explicitly on Windows. https://bugs.python.org/issue34687
1 parent 077061a commit 37aae9d

3 files changed

Lines changed: 0 additions & 17 deletions

File tree

Doc/library/asyncio-eventloop.rst

Lines changed: 0 additions & 9 deletions

Doc/library/asyncio-protocol.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,10 +1030,6 @@ The subprocess is created by th :meth:`loop.subprocess_exec` method::
10301030
data = bytes(protocol.output)
10311031
return data.decode('ascii').rstrip()
10321032

1033-
if sys.platform == "win32":
1034-
asyncio.set_event_loop_policy(
1035-
asyncio.WindowsProactorEventLoopPolicy())
1036-
10371033
date = asyncio.run(get_date())
10381034
print(f"Current date: {date}")
10391035

Doc/library/asyncio-subprocess.rst

Lines changed: 0 additions & 4 deletions

0 commit comments

Comments
 (0)