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
This commit is contained in:
Victor Stinner 2018-09-28 08:40:08 -07:00 committed by Miss Islington (bot)
parent 077061a7b2
commit 37aae9dcf1
3 changed files with 0 additions and 17 deletions

View file

@ -1030,10 +1030,6 @@ The subprocess is created by th :meth:`loop.subprocess_exec` method::
data = bytes(protocol.output)
return data.decode('ascii').rstrip()
if sys.platform == "win32":
asyncio.set_event_loop_policy(
asyncio.WindowsProactorEventLoopPolicy())
date = asyncio.run(get_date())
print(f"Current date: {date}")