bpo-45568: Actually use @asynccontextmanager in usage example (GH-29151)

Automerge-Triggered-By: GH:asvetlov
This commit is contained in:
Zbigniew Siciarz 2021-11-25 13:30:48 +01:00 committed by GitHub
parent dc19e86983
commit 4dd82194f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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: