pep-492: Fix 'async with' equivalent code

This commit is contained in:
Yury Selivanov 2015-05-17 11:07:25 -04:00
parent 9fd81459d0
commit 27e9469760
1 changed files with 1 additions and 1 deletions

View File

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