mirror of https://github.com/python/cpython
Fixed typo with asynccontextmanager code example (GH-8845)
`yield conn`, instead of just `yield`.
This commit is contained in:
parent
09efe49c07
commit
416cbce22d
|
@ -116,7 +116,7 @@ Functions and classes provided:
|
|||
async def get_connection():
|
||||
conn = await acquire_db_connection()
|
||||
try:
|
||||
yield
|
||||
yield conn
|
||||
finally:
|
||||
await release_db_connection(conn)
|
||||
|
||||
|
|
Loading…
Reference in New Issue