summaryrefslogtreecommitdiffstats
path: root/Doc/library/asyncio-protocol.rst
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-09-28 15:40:08 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-09-28 15:40:08 (GMT)
commit37aae9dcf18753b8ffda99d1a5758a90af852464 (patch)
tree3c23cfb5c96156818898f5e021bd6debca5352f0 /Doc/library/asyncio-protocol.rst
parent077061a7b24917aaf31057885c69919c5a553c88 (diff)
downloadcpython-37aae9dcf18753b8ffda99d1a5758a90af852464.zip
cpython-37aae9dcf18753b8ffda99d1a5758a90af852464.tar.gz
cpython-37aae9dcf18753b8ffda99d1a5758a90af852464.tar.bz2
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
Diffstat (limited to 'Doc/library/asyncio-protocol.rst')
-rw-r--r--Doc/library/asyncio-protocol.rst4
1 files changed, 0 insertions, 4 deletions
diff --git a/Doc/library/asyncio-protocol.rst b/Doc/library/asyncio-protocol.rst
index bdfdcf7..14ec31a 100644
--- a/Doc/library/asyncio-protocol.rst
+++ b/Doc/library/asyncio-protocol.rst
@@ -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}")