summaryrefslogtreecommitdiff
path: root/Doc/library/sys.rst
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2015-06-24 11:04:15 -0400
committerYury Selivanov <yselivanov@sprymix.com>2015-06-24 11:04:15 -0400
commit66f8828bfce4a05cb5e27ed89bba46cdfc64f995 (patch)
tree1ad1dac376e1af397092b1acd5cd0f82732d31d0 /Doc/library/sys.rst
parentfcba97242b5ff446849e704926f51ce61355ee0b (diff)
downloadcpython-git-66f8828bfce4a05cb5e27ed89bba46cdfc64f995.tar.gz
Issue #24439: Improve PEP 492 related docs.
Patch by Martin Panter.
Diffstat (limited to 'Doc/library/sys.rst')
-rw-r--r--Doc/library/sys.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index 144c986ab1..545e6742c1 100644
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -1080,7 +1080,7 @@ always available.
:func:`types.coroutine` or :func:`asyncio.coroutine` will not be
intercepted).
- *wrapper* must be either:
+ The *wrapper* argument must be either:
* a callable that accepts one argument (a coroutine object);
* ``None``, to reset the wrapper.
@@ -1096,7 +1096,8 @@ always available.
return wrap(coro)
sys.set_coroutine_wrapper(wrapper)
- async def foo(): pass
+ async def foo():
+ pass
# The following line will fail with a RuntimeError, because
# `wrapper` creates a `wrap(coro)` coroutine: