diff options
| author | Zbigniew Siciarz <zbigniew@siciarz.net> | 2021-11-25 13:30:48 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-25 04:30:48 -0800 |
| commit | 4dd82194f4a0e48a94191655e571b3aad1c4a22a (patch) | |
| tree | e0b6be89f7ae85d0402026c728b94cabdcffc7c0 | |
| parent | dc19e8698327cae3d6274b73c135375955f1d0d0 (diff) | |
| download | cpython-git-4dd82194f4a0e48a94191655e571b3aad1c4a22a.tar.gz | |
bpo-45568: Actually use @asynccontextmanager in usage example (GH-29151)
Automerge-Triggered-By: GH:asvetlov
| -rw-r--r-- | Doc/library/contextlib.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst index a800a0b8de..bb93088b34 100644 --- a/Doc/library/contextlib.rst +++ b/Doc/library/contextlib.rst @@ -130,7 +130,9 @@ Functions and classes provided: either as decorators or with :keyword:`async with` statements:: import time + from contextlib import asynccontextmanager + @asynccontextmanager async def timeit(): now = time.monotonic() try: |
