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)
|
aenter = type(mgr).__aenter__(mgr)
|
||||||
exc = True
|
exc = True
|
||||||
|
|
||||||
|
VAR = await aenter
|
||||||
try:
|
try:
|
||||||
VAR = await aenter
|
|
||||||
BLOCK
|
BLOCK
|
||||||
except:
|
except:
|
||||||
if not await aexit(mgr, *sys.exc_info()):
|
if not await aexit(mgr, *sys.exc_info()):
|
||||||
|
|
Loading…
Reference in New Issue