pep-492: Fix 'async with' equivalent code
This commit is contained in:
parent
9fd81459d0
commit
27e9469760
|
@ -357,8 +357,8 @@ which is semantically equivalent to::
|
|||
aenter = type(mgr).__aenter__(mgr)
|
||||
exc = True
|
||||
|
||||
VAR = await aenter
|
||||
try:
|
||||
VAR = await aenter
|
||||
BLOCK
|
||||
except:
|
||||
if not await aexit(mgr, *sys.exc_info()):
|
||||
|
|
Loading…
Reference in New Issue