From 27e9469760832b193b033a20d60dbb6387a51325 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Sun, 17 May 2015 11:07:25 -0400 Subject: [PATCH] pep-492: Fix 'async with' equivalent code --- pep-0492.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pep-0492.txt b/pep-0492.txt index 27915878e..f8f1e8c82 100644 --- a/pep-0492.txt +++ b/pep-0492.txt @@ -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()):