]> granicus.if.org Git - python/commitdiff
Improve grammar on async context managers and shorten text (GH-12379)
authorAndre Delfino <adelfino@gmail.com>
Fri, 3 May 2019 15:08:10 +0000 (12:08 -0300)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 3 May 2019 15:08:10 +0000 (08:08 -0700)
Doc/reference/datamodel.rst

index 1683d25db9247a67e97e29846d633910c08d0192..bad611e81c3e65133f5c2494e05fbfc1c15335bd 100644 (file)
@@ -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::