[Python-checkins] Improve grammar on async context managers and shorten text (GH-12379)

Miss Islington (bot) webhook-mailer at python.org
Fri May 3 11:08:16 EDT 2019


https://github.com/python/cpython/commit/a8a79cacca4a03e2e682bf10108c80f502791755
commit: a8a79cacca4a03e2e682bf10108c80f502791755
branch: master
author: Andre Delfino <adelfino at gmail.com>
committer: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
date: 2019-05-03T08:08:10-07:00
summary:

Improve grammar on async context managers and shorten text (GH-12379)

files:
M Doc/reference/datamodel.rst

diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index 1683d25db924..bad611e81c3e 100644
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -2680,13 +2680,13 @@ Asynchronous context managers can be used in an :keyword:`async with` statement.
 
 .. method:: object.__aenter__(self)
 
-   This method is semantically similar to the :meth:`__enter__`, with only
-   difference that it must return an *awaitable*.
+   Semantically similar to :meth:`__enter__`, the only
+   difference being that it must return an *awaitable*.
 
 .. method:: object.__aexit__(self, exc_type, exc_value, traceback)
 
-   This method is semantically similar to the :meth:`__exit__`, with only
-   difference that it must return an *awaitable*.
+   Semantically similar to :meth:`__exit__`, the only
+   difference being that it must return an *awaitable*.
 
 An example of an asynchronous context manager class::
 



More information about the Python-checkins mailing list