diff options
author | Andre Delfino <adelfino@gmail.com> | 2019-05-03 15:08:10 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-05-03 15:08:10 (GMT) |
commit | a8a79cacca4a03e2e682bf10108c80f502791755 (patch) | |
tree | 9cf57568a757cbb168ac3bb76afd1921dab5c799 /Doc/reference/datamodel.rst | |
parent | 5861cddf76215b8390d48069a35d30a5c3ec92c1 (diff) | |
download | cpython-a8a79cacca4a03e2e682bf10108c80f502791755.zip cpython-a8a79cacca4a03e2e682bf10108c80f502791755.tar.gz cpython-a8a79cacca4a03e2e682bf10108c80f502791755.tar.bz2 |
Improve grammar on async context managers and shorten text (GH-12379)
Diffstat (limited to 'Doc/reference/datamodel.rst')
-rw-r--r-- | Doc/reference/datamodel.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 1683d25..bad611e 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:: |